chore(deps): update dependency org.sonarsource.scanner.gradle:sonarqu… #1919
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
# refs https://github.com/github/codeql-action | |
name: "Code Scanning - Action" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
jobs: | |
CodeQL-Build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'spotbugs/spotbugs-gradle-plugin' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
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@v4 | |
with: | |
distribution: 'temurin' | |
java-version-file: .java-version | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Scan the project | |
run: ./gradlew detekt --scan | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: build/reports/detekt/detekt.sarif |