@@ -16,28 +16,20 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
permissions :
18
18
security-events : write
19
-
20
- strategy :
21
- fail-fast : false
22
- matrix :
23
- include :
24
- - language : javascript-typescript
25
- build-mode : none
26
19
27
20
steps :
28
21
- name : Checkout Code
29
22
uses : actions/checkout@v4
30
23
- name : Initialize CodeQL
31
24
uses : github/codeql-action/init@v3
32
25
with :
33
- languages : ${{ matrix.language }}
34
- build-mode : ${{ matrix.build-mode }}
26
+ languages : javascript-typescript
35
27
- name : Autobuild
36
28
uses : github/codeql-action/autobuild@v3
37
29
- name : Perform CodeQL Analysis
38
30
uses : github/codeql-action/analyze@v3
39
31
with :
40
- category : " /language:${{matrix.language}} "
32
+ category : " /language:javascript-typescript "
41
33
42
34
build-push :
43
35
name : Build and Push Container Image
55
47
with :
56
48
username : ${{ secrets.DOCKER_USERNAME }}
57
49
password : ${{ secrets.DOCKER_PASSWORD }}
58
-
59
50
- name : Build and Publish Container Image
60
51
uses : docker/build-push-action@v3
61
52
with :
74
65
75
66
steps :
76
67
- name : Install Trivy
77
- uses : aquasecurity/trivy-action@0.20 .0
68
+ uses : aquasecurity/trivy-action@0.28 .0
78
69
with :
79
70
image-ref : ' ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}'
80
71
format : ' table'
@@ -125,6 +116,7 @@ jobs:
125
116
- uses : anchore/sbom-action@v0
126
117
with :
127
118
image : ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
119
+ format : cyclonedx
120
+ upload-artifact-retention : 30
128
121
env :
129
122
COSIGN_KEY : ${{secrets.COSIGN_PUBLIC_KEY}}
130
-
0 commit comments