Skip to content

Bump aquasecurity/trivy-action from 0.19.0 to 0.20.0 #3148

Bump aquasecurity/trivy-action from 0.19.0 to 0.20.0

Bump aquasecurity/trivy-action from 0.19.0 to 0.20.0 #3148

Workflow file for this run

name: "CodeQL"
env:
MAVEN_OPTS: -Djava.awt.headless=true
concurrency: # More info: https://stackoverflow.com/a/68422069/253468
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-master-{0}', github.sha) || format('ci-master-{0}', github.ref) }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.properties'
schedule:
- cron: '26 18 * * 0'
workflow_dispatch:
jobs:
analyze:
name: "CodeQL Analyze"
runs-on: ubuntu-latest
# don't run on pull request merges to main from dependabot as these will always fail
if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' }}
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [ 'java', 'javascript' ]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.6'
- name: "Initialize CodeQL"
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# - name: "Autobuild"
# uses: github/codeql-action/autobuild@v3
- name: "Build with Maven"
run: mvn -B -V -fae -DskipTests -DskipITs -DskipQA=true -Dmaven.javadoc.skip=true -Ddocker.skip=true install
- name: "Perform CodeQL Analysis"
uses: github/codeql-action/analyze@v3
- name: "Cleanup cached snapshots"
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}