Skip to content

Commit

Permalink
Limit some workflow permissions
Browse files Browse the repository at this point in the history
Limiting our permissions to the base minimum needed for the given
workflow. This PR gets workflows that run when a PR is opened.
  • Loading branch information
SeanTAllen committed Jan 19, 2025
1 parent e5fcce7 commit cf71eb7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/add-discuss-during-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
types:
- submitted

permissions:
pull-requests: write

jobs:
add-label:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/changelog-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
paths-ignore:
- CHANGELOG.md

permissions:
packages: read
pull-requests: write

jobs:
changelog-bot:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-action-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:
group: lint-actions-${{ github.ref }}
cancel-in-progress: true

permissions:
packages: read

jobs:
lint:
name: Lint
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true

permissions:
packages: read

jobs:
superlinter:
name: Lint bash, docker, markdown, and yaml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- .release-notes/next-release.md
- .release-notes/\d+.\d+.\d+.md

permissions:
packages: read
pull-requests: read
contents: write

jobs:
release-notes:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cf71eb7

Please sign in to comment.