Skip to content

Build(deps): Bump github/codeql-action from 3.27.9 to 3.28.0 (#236) #903

Build(deps): Bump github/codeql-action from 3.27.9 to 3.28.0 (#236)

Build(deps): Bump github/codeql-action from 3.27.9 to 3.28.0 (#236) #903

Workflow file for this run

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@18f2510ee396bbf400402947b394f2dd8c87dbb0 # 0.29.0
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@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
if: always()
with:
sarif_file: 'trivy-results.sarif'
wait-for-processing: true