Skip to content

Commit

Permalink
[CI] Use custom build step in CodeQL workflow (#12968)
Browse files Browse the repository at this point in the history
Resolves #12607
  • Loading branch information
djaglowski authored Aug 4, 2022
1 parent 8b6eb62 commit a5e4c55
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
env:
# Force CodeQL to run the extraction on the files compiled by our custom
# build command, as opposed to letting the autobuilder figure it out.
# See: https://github.com/github/codeql-action/issues/1101#issuecomment-1157729589
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'

steps:
- name: Checkout repository
Expand All @@ -23,9 +28,11 @@ jobs:
with:
languages: go

- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Build Artifact
run: |
make otelcontribcol
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
timeout-minutes: 60

0 comments on commit a5e4c55

Please sign in to comment.