Skip to content

Protecting .github/workflows #25236

Discussion options

You must be logged in to vote

Those are the old docs for workflows based on HCL. You should look at the docs for the new YAML workflows because a lot has changed. https://help.github.com/en/categories/automating-your-workflow-with-github-actions

There are a few ways to control changes to workflows flows:

  • Workflow files will only execute in the context of a branch they exist in. If someone creates a PR with a change for a workflow file that targets master, it won’t run on master until that PR is merged into master.
  • You can use codeowners and branch protection to require reviews for changes to files in .github/workflows
  • Secrets aren’t passed to workflows that run in PR from forks, to prevent leaks.

Replies: 20 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet