-
Notifications
You must be signed in to change notification settings - Fork 915
Run CodeQL on PRs #7070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run CodeQL on PRs #7070
Changes from 4 commits
0015800
3858e7c
5ed62c4
0ae4605
d408830
328cd4f
48cb63b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,58 @@ | ||||
| name: CodeQL | ||||
|
|
||||
| on: | ||||
| pull_request: | ||||
| branches: | ||||
| - main | ||||
| - release/* | ||||
| - v0.* | ||||
| - v1.* | ||||
| - benchmarks | ||||
| push: | ||||
| branches: | ||||
| - main | ||||
| - release/* | ||||
| - v0.* | ||||
| - v1.* | ||||
|
||||
| - benchmarks | ||||
| schedule: | ||||
| - cron: "29 13 * * 2" # weekly at 13:29 UTC on Tuesday | ||||
|
|
||||
| permissions: | ||||
| contents: read | ||||
|
|
||||
| jobs: | ||||
| analyze: | ||||
| permissions: | ||||
| contents: read | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redundant?
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my understanding is
so I think I can remove them, let me try this in instrumentation repo first also...
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this didn't work, see explanation in open-telemetry/opentelemetry-java-instrumentation#13247
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for trying. |
||||
| 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: ubuntu-latest | ||||
| steps: | ||||
| - uses: actions/checkout@v4 | ||||
|
|
||||
| - name: Set up Java 17 | ||||
| uses: actions/setup-java@v4 | ||||
| with: | ||||
| distribution: temurin | ||||
| java-version: 17 | ||||
|
|
||||
| - name: Set up gradle | ||||
| uses: gradle/actions/setup-gradle@v4 | ||||
|
||||
|
|
||||
| - name: Initialize CodeQL | ||||
| uses: github/codeql-action/init@v3 | ||||
| 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: Assemble | ||||
| # --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 --no-build-cache --no-daemon | ||||
|
|
||||
| - name: Perform CodeQL analysis | ||||
| uses: github/codeql-action/analyze@v3 | ||||
Uh oh!
There was an error while loading. Please reload this page.