Skip to content

Commit 2719673

Browse files
committed
build: add snyk scan and ghcr cleanup
1 parent 9bcac1c commit 2719673

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,28 @@ jobs:
173173
https://api.github.com/repos/steadybit/extension-deployer/actions/workflows/extension-restart.yml/dispatches \
174174
-d '{"ref":"main","inputs":{"extension":"${{ github.repository }}","version":"${{ steps.meta.outputs.version }}","revision":"${{ github.sha }}"}}'
175175
176+
snyk-test:
177+
name: "Snyk Test ${{ startsWith(github.ref, 'refs/tags/') && '- If this breaks for CVEs, you need to revoke the published image (and move latest tag)!' || '' }}"
178+
uses: steadybit/extension-kit/.github/workflows/reusable-snyk-scan.yml@main
179+
needs: [build-images]
180+
with:
181+
command: test
182+
container_image: ghcr.io/${{ github.repository }}:latest
183+
secrets:
184+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
185+
186+
snyk-monitor:
187+
name: "[Release] Snyk Monitor latest"
188+
uses: steadybit/extension-kit/.github/workflows/reusable-snyk-scan.yml@main
189+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
190+
needs: [build-images]
191+
with:
192+
command: monitor
193+
container_image: ghcr.io/${{ github.repository }}:latest
194+
target_ref: latest
195+
secrets:
196+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
197+
176198
build-packages:
177199
name: Build Linux Packages
178200
needs:

.github/workflows/ghcr-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: "0 8 * * 1"
77

88
jobs:
9-
extension-ci:
9+
ghcr-cleanup:
1010
uses: steadybit/extension-kit/.github/workflows/reusable-ghcr-cleanup.yml@main
1111
secrets:
1212
token: ${{ secrets.GHCR_CLEANUP_PAT }}

0 commit comments

Comments
 (0)