Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolacerda authored Sep 6, 2024
1 parent f1c6759 commit d9cc7dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions topics/04.security-best-practices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ Restricting permissions to edit workflows can help prevent unauthorized changes

To restrict permissions to edit workflows you can create a [Repository Ruleset](https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets) of the type [Push ruleset](https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets#push-rulesets) and add a rule to restrict the `workflows` directory.

<img width="925" alt="image" src="https://github.com/user-attachments/assets/f77ab945-d643-4154-b08a-01d89a18da02">

The organization owners can define who can bypass these rules.

<img width="955" alt="image" src="https://github.com/user-attachments/assets/204dbb10-efc3-4276-9f19-b25fa00fa255">

### Setting Scopes for Self-Hosted Runners

Setting scopes for self-hosted runners can help limit the access of self-hosted runners to specific repositories or organizations.
Expand Down

0 comments on commit d9cc7dc

Please sign in to comment.