You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that .enforcement is active (protects 'a' above)
Check that .updated_at is at least X days in the past. (provides some protection for 'b' above).
It seems like this should be possible to do with jq and more shell scripting, but maybe someone would be interested into turning this into something more formal?
The text was updated successfully, but these errors were encountered:
I think there's an outstanding question about what 'X' should be for check '4'.
When chatting about it with @adityasaky I suggested '90 days' for Level 2, but it might be possible to go much shorter if we wanted to. It will require some thought.
For now, in this PoC, maybe we'd prefer to keep it simple and say '7' days or something like that? That should make it easier to see progress in the near term.
This introduces a golang CLI that determines the level instead of using shell scripts.
It also implements the ideas in #13 to ensure the rulesets are active and have been active for a sufficient length of time.
The go program introduced here:
1. Checks that deletion and non-fast-forward rules exist.
2. That they are active within a certain about of time of the provided commit being pushed to the branch.
It also starts to introduce support for producing and signing the VSA with Sigstore, but currently stops short because it got too complicated.
Right now the rule check in
actions/vsa_creator/determine_source_level_gh.sh
doesn't checka. That the rule has enforcement active
b. That the user hasn't made other changes to the code prior to this revision with the rule deactived.
Currently the spec doesn't really address (b) but it probably should in some way.
A quick proposal for what we could do here:
e.g.
.enforcement
isactive
(protects 'a' above).updated_at
is at least X days in the past. (provides some protection for 'b' above).It seems like this should be possible to do with
jq
and more shell scripting, but maybe someone would be interested into turning this into something more formal?The text was updated successfully, but these errors were encountered: