Skip to content

Commit 173fab4

Browse files
authored
update anchore
1 parent 956ccac commit 173fab4

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/ci.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,20 @@ jobs:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
security-events: write
19-
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
include:
24-
- language: javascript-typescript
25-
build-mode: none
2619

2720
steps:
2821
- name: Checkout Code
2922
uses: actions/checkout@v4
3023
- name: Initialize CodeQL
3124
uses: github/codeql-action/init@v3
3225
with:
33-
languages: ${{ matrix.language }}
34-
build-mode: ${{ matrix.build-mode }}
26+
languages: javascript-typescript
3527
- name: Autobuild
3628
uses: github/codeql-action/autobuild@v3
3729
- name: Perform CodeQL Analysis
3830
uses: github/codeql-action/analyze@v3
3931
with:
40-
category: "/language:${{matrix.language}}"
32+
category: "/language:javascript-typescript"
4133

4234
build-push:
4335
name: Build and Push Container Image
@@ -55,7 +47,6 @@ jobs:
5547
with:
5648
username: ${{ secrets.DOCKER_USERNAME }}
5749
password: ${{ secrets.DOCKER_PASSWORD }}
58-
5950
- name: Build and Publish Container Image
6051
uses: docker/build-push-action@v3
6152
with:
@@ -74,7 +65,7 @@ jobs:
7465

7566
steps:
7667
- name: Install Trivy
77-
uses: aquasecurity/trivy-action@0.20.0
68+
uses: aquasecurity/trivy-action@0.28.0
7869
with:
7970
image-ref: '${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}'
8071
format: 'table'
@@ -125,6 +116,7 @@ jobs:
125116
- uses: anchore/sbom-action@v0
126117
with:
127118
image: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
119+
format: cyclonedx
120+
upload-artifact-retention: 30
128121
env:
129122
COSIGN_KEY: ${{secrets.COSIGN_PUBLIC_KEY}}
130-

0 commit comments

Comments
 (0)