-
Notifications
You must be signed in to change notification settings - Fork 27
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
copy workflows from blueapi, [still need to configure env values -not a code change] #664
base: main
Are you sure you want to change the base?
Changes from all commits
bdeed64
f61fa9f
cfe48a3
1257827
4d0ba0e
428e06d
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,53 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
codeql: | ||
description: "Specify the trigger type" | ||
required: true | ||
type: string | ||
default: "push" | ||
secrets: | ||
codeql_token: | ||
description: "Token for CodeQL" | ||
required: true | ||
Comment on lines
+11
to
+14
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. Where is this token used? Isn't it just the GH token? |
||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
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. matrix? |
||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/using-larger-runners (GitHub.com only) | ||
runs-on: "ubuntu-latest" | ||
timeout-minutes: 120 | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: python | ||
build-mode: none | ||
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, | ||
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
Comment on lines
+50
to
+51
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. matrix? 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 is for it we were using multiple languages 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. and we have the strategy using matrix on lines 34... 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. Ok, but as there is a single entry in the matrix I suggest you remove it and put the variables here 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 was the template provided, isn't just simpler to keep it? 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. Personal preference. My opinion is that people will read the code a lot more often than write the code. The template's job is to tell us how to make a maximally complicated example work. Our job is to take the bits we want out of it and make an understandable blob of YAML that reads legibly. I would suggest removing the single item matrix as it gets in the way of doing this. |
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ jobs: | |
uses: ./.github/workflows/_tox.yml | ||
with: | ||
tox: docs build -- -b linkcheck | ||
codeql: | ||
uses: ./.github/workflows/_codeql.yml | ||
with: | ||
codeql: "Check codeql setup" | ||
Comment on lines
+16
to
+17
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. No with: required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not used either