mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.23.2 to 3.24.6. - [Release notes](https://github.com/github/codeql-action/releases) - [Commits](https://github.com/github/codeql-action/compare/v3.23.2...v3.24.6) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Trivy Nightly Scan
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * 5' # Run at 2AM UTC on every Friday
|
|
|
|
permissions: read-all
|
|
jobs:
|
|
nightly-scan:
|
|
name: Trivy Scan nightly
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# It will test for only the latest version as older version is not maintained
|
|
versions: [latest]
|
|
permissions:
|
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Run Trivy vulnerability scanner
|
|
uses: aquasecurity/trivy-action@062f2592684a31eb3aa050cc61e7ca1451cecd3d # master
|
|
with:
|
|
image-ref: 'docker.io/coredns/coredns:${{ matrix.versions }}'
|
|
severity: 'CRITICAL,HIGH'
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@baf3361f3137806df1a78c598d1256f83cb89a23 # v2.13.4
|
|
with:
|
|
sarif_file: 'trivy-results.sarif'
|