Skip to content
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

Update workflow policy to scan all branches for dangerous workflows #569 #622

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

serb-google
Copy link

This PR addresses #569 and introduces 2 changes:

  • Adds support for local git repos in scorecard.go, with additional functionality to switch between all branches. I opted to not replace the existing Github client as policies may want to interact directly with Github.
  • Updates workflow.go to scan all remote branches in the local git repo.

Tested locally using https://github.com/serb-google/allstar, with a branch insecure_test which contains a fake unsafe workflow rule. Verified this triggered the alert which included output Vulnerable Branch: refs/remotes/origin/insecure_test.

This is my first contribution to this repo, please review carefully :)

@serb-google serb-google requested a review from a team as a code owner January 6, 2025 01:59
Signed-off-by: Samuel Erb <[email protected]>
Signed-off-by: Samuel Erb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant