mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-19 13:15:23 +08:00
32988e12ed
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Snyk Docker Vulnerability Scan
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
schedule:
|
|
- cron: '39 13 * * 4'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
snyk:
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
actions: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Build a Docker image
|
|
run: docker build -t burnett01/rsync-deployments .
|
|
- name: Run Snyk to check Docker image for vulnerabilities
|
|
continue-on-error: true
|
|
uses: snyk/actions/docker@master
|
|
env:
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
with:
|
|
image: burnett01/rsync-deployments
|
|
args: --file=Dockerfile
|
|
- name: Output sarif file
|
|
run: cat snyk.sarif
|
|
- name: fix security-severity "null" to "0" for valid sarif format
|
|
run: |
|
|
sed -i 's/"security-severity": "null"/"security-severity": "0"/g' snyk.sarif
|
|
- name: Upload result to GitHub Code Scanning
|
|
uses: github/codeql-action/upload-sarif@v4
|
|
with:
|
|
sarif_file: snyk.sarif
|