Skip to content

chore(deps): update github/codeql-action action to v4.37.3 (#1766) #791

chore(deps): update github/codeql-action action to v4.37.3 (#1766)

chore(deps): update github/codeql-action action to v4.37.3 (#1766) #791

Workflow file for this run

# refs https://github.com/github/codeql-action
name: "Code Scanning - Action"
on:
push:
branches:
- master
pull_request: {}
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.repository == 'spotbugs/spotbugs-gradle-plugin'
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# If this run was triggered by a pull request event then checkout
# the head of the pull request instead of the merge commit.
# Only include this step if you are running this workflow on pull requests.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Set up JDK
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version-file: .java-version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- name: Scan the project
run: ./gradlew detekt --scan
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: build/reports/detekt/detekt.sarif