Skip to content

chore(gh): limit permissions of gh actions #1333

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/gh-issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Update issue comment
on:
issue_comment:

permissions:
issues: write

jobs:
when_user_comments_remove_label_waiting_for_feedback:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gh-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Update issue
on:
issues:

permissions:
issues: write

jobs:
comment_when_issue_labeled_staged_for_release:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/owasp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
- cron: "48 9 * * 4"
workflow_dispatch:

permissions:
contents: read
actions: read
security-events: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/springwolf-addons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:

permissions:
contents: read
checks: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/springwolf-asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:

permissions:
contents: read
checks: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/springwolf-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:

permissions:
contents: read
checks: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/springwolf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ on:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
checks: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/springwolf-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
permissions:
contents: read
checks: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/springwolf-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ on:
workflow_dispatch:

permissions:
contents: write
contents: read
checks: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/welcome-first-time-contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
types:
- opened

permissions:
issues: write
pull-requests: write

jobs:
welcome:
name: Post welcome message
Expand Down
Loading