-
-
Notifications
You must be signed in to change notification settings - Fork 198
Zizmor integration #1344
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
Zizmor integration #1344
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1344 +/- ##
=======================================
Coverage 90.83% 90.83%
=======================================
Files 67 67
Lines 6559 6559
=======================================
Hits 5958 5958
Misses 601 601
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment was marked as resolved.
This comment was marked as resolved.
93903a0
to
cdc5360
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.
@webknjaz: Should we make this part of the allsgreen check? If so, fold the workflow into the existing ci-cd workflow?
Didn't think about it. But perhaps, it's a good idea. Though, there's merge queue and I don't know if we should be running the check with those. I guess, we'll find out.
Regarding adding more jobs, while integrating alls-green into CPython, I had to deal with multiple workflows. And I ended up coming up with a modularization idea — different jobs (but not matrixes) can go into in-repo reusable workflows. Their names are prefixed with reusable-
and they are only allowed to have the workflow_call
trigger setup. Then, the main workflow has all the real triggers + defines relationships between the jobs and matrixes on the high level. This top-level definition also contains alls-green and pypi-publish (due to trusted publishing limitations, it's not in a reusable workflow).
Having been using this approach for almost 2 years now, I find it a really good structure as it allows separating the abstraction layers which is good for the organization.
cdc5360
to
1940081
Compare
1940081
to
0580d57
Compare
0580d57
to
9800265
Compare
9800265
to
ffb765e
Compare
I like the modular design and applied it to the best of my knowledge. That should have been a separate PR, but ¯_(ツ)_/¯ |
Yeah, I thought you'd just add the new workflow that way and separate the rest... I think you should resubmit this PR from a fork (actually, I think any topic branches should live outside upstream but that's a separate topic). I'm concerned about most of the jobs not having their permissions settings. And I think they might have higher privileges within upstream but when a contributor comes in, they'd break. So I'd rather test that right away. |
bad8f50
to
ffb765e
Compare
Reverted all but the new workflow.
I thought, I was doing that all along. Not sure what you mean?
I'm afraid, I don't follow you. But that relates to the other jobs, right? |
Oh, I got confused reviewing from mobile. You're right. No need to resubmit. |
I thought that maybe that build job might have a difficulty uploading artifacts. But if the CI doesn't fail, than it's fine. |
@jakob-keller I did something experimental, and you can now stop hosting an in-tree reusable workflow: ---
name: GitHub Actions Security Analysis with zizmor 🌈
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
zizmor:
name: 🌈 zizmor
permissions:
security-events: write
# yamllint disable-line rule:line-length
uses: zizmorcore/workflow/.github/workflows/reusable-zizmor.yml@1ae473d8672fe7613e809d86d202a35063736e16
... |
Picked this up in #1355 |
Description of Change
Integrate zizmor via GitHub Actions
Assumptions
None
Checklist for All Submissions
Checklist when updating botocore and/or aiohttp versions