Update scan_code.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Container Security Scan | |
on: | |
push: | |
branches: | |
- '**' | |
# schedule: | |
# - cron: '0 12 * * 1' # Weekly scan on Mondays at 12:00 UTC | |
jobs: | |
security_scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Pull container image | |
run: docker pull ghcr.io/flaxandteal/arches_coral_static:dev-13650788094 | |
- name: Run Snyk scan | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SK_TOKEN }} | |
with: | |
image: ghcr.io/flaxandteal/arches_coral_static:dev-13650788094 | |
args: --file=Dockerfile --severity-threshold=high |