chore(deps): pin dependencies #59
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
- release/* | |
- v0.* | |
- v1.* | |
- cloudfoundry | |
- gh-pages | |
push: | |
branches: | |
- main | |
- release/* | |
- v0.* | |
- v1.* | |
- cloudfoundry | |
- gh-pages | |
schedule: | |
- cron: "29 13 * * 2" # weekly at 13:29 UTC on Tuesday | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
permissions: | |
contents: read | |
actions: read # for github/codeql-action/init to get workflow details | |
security-events: write # for github/codeql-action/analyze to upload SARIF results | |
runs-on: otel-linux-latest-8-cores | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# don't need to free disk space (which takes time) since running on larger machine | |
- name: Set up JDK for running Gradle | |
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | |
with: | |
distribution: temurin | |
java-version-file: .java-version | |
- name: Increase gradle daemon heap size | |
run: | | |
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0 | |
with: | |
cache-read-only: ${{ github.event_name == 'pull_request' }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8 | |
with: | |
languages: java, actions | |
# using "latest" helps to keep up with the latest Kotlin support | |
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433 | |
tools: latest | |
- name: Build | |
# --no-build-cache is required for codeql to analyze all modules | |
# --no-daemon is required for codeql to observe the compilation | |
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands) | |
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8 |