chore(deps): Bump github/codeql-action from 3.25.10 to 3.25.11 (#579) #1993
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
--- | |
name: Gradle build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Gradle build | |
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]" | |
# or "github-actions[bot]". | |
# Otherwise, clone it normally. | |
if: | | |
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') || | |
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || | |
(github.event_name == 'pull_request_target' && github.actor == 'github-actions[bot]') || | |
(github.event_name != 'pull_request_target' && github.actor != 'github-actions[bot]') | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Checkout | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version-file: .java-version | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: gradle/actions/[email protected] | |
with: | |
arguments: build |