Skip to content

[Backport 2.19-dev] Pin GitHub Actions to commit SHAs (#5573) #345

[Backport 2.19-dev] Pin GitHub Actions to commit SHAs (#5573)

[Backport 2.19-dev] Pin GitHub Actions to commit SHAs (#5573) #345

name: "CodeQL"
on:
pull_request:
branches:
- 'main'
- '[1-9]+.[0-9x]+'
push:
branches-ignore:
- 'dependabot/**'
paths:
- '**/*.java'
- '.github/workflows/codeql-analysis.yml'
jobs:
analyze:
name: CodeQL-Scan
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Initialize CodeQL
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2