Avoid early expiration of an pending future due to delayed pinning (f… #2684
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: "CodeQL" | |
permissions: read-all | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: '0 0 * * 4' | |
env: | |
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
JAVA_VERSION: 21 | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
pull-requests: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ actions, java ] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.adoptium.net:443 | |
api.github.com:443 | |
caffeine.gradle-enterprise.cloud:443 | |
downloads.gradle.org:443 | |
downloads.gradle-dn.com:443 | |
github.com:443 | |
jcenter.bintray.com:443 | |
objects.githubusercontent.com:443 | |
plugins.gradle.org:443 | |
plugins-artifacts.gradle.org:443 | |
repo.maven.apache.org:443 | |
repo1.maven.org:443 | |
uploads.github.com:443 | |
services.gradle.org:443 | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Gradle | |
uses: ./.github/actions/run-gradle | |
if: ${{ matrix.language == 'java' }} | |
with: | |
java: ${{ env.JAVA_VERSION }} | |
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- name: Initialize CodeQL (Actions) | |
uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 | |
if: ${{ matrix.language == 'actions' }} | |
with: | |
languages: actions | |
- name: Initialize CodeQL (Java) | |
uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 | |
if: ${{ matrix.language == 'java' }} | |
with: | |
queries: > | |
+java-code-scanning, | |
security-extended, | |
security-and-quality, | |
security-experimental | |
languages: java-kotlin | |
packs: > | |
+githubsecuritylab/codeql-java-queries, | |
githubsecuritylab/codeql-java-extensions, | |
githubsecuritylab/codeql-java-library-sources, | |
githubsecuritylab/codeql-java-queries:suites/java-local.qls | |
config: | | |
threat-models: local | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 |