Bump python from dd7a653
to 7b8d65a
#124
Workflow file for this run
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: Trivy Docker Image Scanning | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [opened, reopened, synchronize] | |
schedule: | |
- cron: '0 0 * * *' | |
### Ensures that only one CI task per branch/environment will run at a time ### | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
trivy: | |
name: Trivy Scanning | |
runs-on: ubuntu-20.04 | |
permissions: | |
security-events: write | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Build an image from Dockerfile | |
run: | | |
docker build -t dungpham91/lint-json-inside-yaml:${{ github.sha }} . | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@f78e9ecf42a1271402d4f484518b9313235990e1 # 0.13.1 | |
with: | |
image-ref: 'dungpham91/lint-json-inside-yaml:${{ github.sha }}' | |
format: 'sarif' | |
output: 'trivy-results.sarif' | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5 | |
if: always() | |
with: | |
sarif_file: 'trivy-results.sarif' | |
wait-for-processing: true |