ci: security updates - #51
Open
aliziel wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot
Dependabot security updates are already enabled, this config will automate version updates. We likely won't find the right alert:noise balance on the first attempt, so we should be open to further tuning.
Config covers:
pip(CDK build)docker(API container image)github-actions(CI)Schedule
Currently on the default schedule, so we'd get in batches all at once, but can spread out more if that's the preference.
Cooldowns
Also used more granular cooldown configs for major/minor version bumps on
uvonly, but can add to other package ecosystems if that's preferred as well. Some suggest up to 14 days, but we also had a teammember get blocked on patching.a security fix, so attempting to balance.OSSF Scorecard
From the Open Source Security Foundation. Audits repository security posture, practices, and config.
https://scorecard.dev/
https://github.com/ossf/scorecard-action
Schedule
Alongside pushes to main, also runs Monday 10:30/11:30 CT to ensure consistent assessment. Time was chosen to run before Monday tagup, but can absolutely be changed.
Token permissions
Moved
id-token: writefrom top-level (all jobs) to specific job required.