-
Notifications
You must be signed in to change notification settings - Fork 28
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?
Conversation
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
8562d66
to
5f9ea2e
Compare
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.
Please can you:
- compress codeql.yaml down so that it only contains the python bits
- turn it into a reusable workflow like _tox.yaml and call it from periodic.yaml
- delete sonarcloud things
959cad1
to
cfe48a3
Compare
thanks for the comments @coretl . I deleted the 'if swift language' branches, kept the comments though to keep this more similar to the template workflow for codeql. now sure fully about the syntax in the periodic file though |
2a1df5b
to
ff9f5e4
Compare
deleted outdated comments |
.github/workflows/_codeql.yaml
Outdated
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: python | ||
build-mode: none |
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.
Redundant code
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: python | |
build-mode: none |
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.
why is it redundant? the default ci.yml did use the reference to that
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.
You make a matrix with precisely one entry in it, saying that all jobs in the matrix should complete if one fails, defining the variables language and build mode. You don't use those variables anywhere. If you delete this block of code then the workflow will do exactly the same.
.github/workflows/_codeql.yaml
Outdated
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 |
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.
I suspect these permissions need to be in periodic.yml
rather than here. Please add them one at a time and test using https://github.com/bluesky/ophyd-async/actions/workflows/periodic.yml until it is working.
ff9f5e4
to
5bcd8a8
Compare
6d4a8ec
to
999ec8c
Compare
@coretl I think all is clear now |
@