Skip to content

Commit

Permalink
security: add permissions block to workflows (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Mar 28, 2024
1 parent c60b759 commit b28634e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
issues:
types:
- opened
permissions:
contents: read

jobs:
add_issue_to_project:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/add-pr-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
types: [review_requested]
branches:
- 'main'
permissions:
contents: read

jobs:
specific_review_requested:
name: Adding
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/add-to-dev-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request_target:
types:
- labeled
permissions:
contents: read

jobs:
add_to_data_plane-project:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b28634e

Please sign in to comment.