-
Notifications
You must be signed in to change notification settings - Fork 968
ci: enable CodeQL code scanning #5279
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
Changes from 10 commits
2f3d512
4770ad8
ac47acd
df4df49
a3e31ec
34521c0
be83ef3
a4ccada
480b59d
18f3fd9
5a4c169
bcde5f3
d7df6d4
98d6886
38ce3f1
4aa5c05
d4adaf7
d7b882f
ea08e7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
schedule: | ||
# run every week at 10:24 on Thursday | ||
- cron: '24 10 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'go', 'javascript' ] | ||
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. Should we limit JavaScript scope to 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. Yes we may limit this scanning to only |
||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
deansheather marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Download Go Dependencies | ||
if: matrix.language == 'go' | ||
run: go mod download | ||
mafredri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
Uh oh!
There was an error while loading. Please reload this page.