Skip to content

Commit

Permalink
Add minimal permissions to some actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Jan 26, 2025
1 parent 94c72e8 commit c857d6a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 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
5 changes: 5 additions & 0 deletions .github/workflows/changelog-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
paths-ignore:
- CHANGELOG.md

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

jobs:
changelog-bot:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .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 All @@ -14,6 +17,6 @@ jobs:
- name: Checkout
uses: actions/[email protected]
- name: Check workflow files
uses: docker://ghcr.io/ponylang/shared-docker-ci-actionlint:20241206
uses: docker://ghcr.io/ponylang/shared-docker-ci-actionlint:20250119
with:
args: -color
7 changes: 6 additions & 1 deletion .github/workflows/release-notes-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Release Notes Reminder

on:
pull_request_target:
types: [labeled]
types:
- labeled

permissions:
packages: read
pull-requests: write

jobs:
release-note-reminder:
Expand Down
7 changes: 6 additions & 1 deletion .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 All @@ -31,5 +36,5 @@ jobs:
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} unattended job failure
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.
3 changes: 3 additions & 0 deletions .github/workflows/remove-discuss-during-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
types:
- closed

permissions:
pull-requests: write

jobs:
remove-label:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c857d6a

Please sign in to comment.