Skip to content

Commit

Permalink
Set minimal permissions for github actions workflows (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Jan 25, 2025
1 parent 6dd914c commit 352c9f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
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: 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
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 markdown and yaml
Expand Down
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
3 changes: 3 additions & 0 deletions .github/workflows/verify-site-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: '0 2 * * *'

permissions:
packages: read

jobs:
test:
name: Verify site builds
Expand Down

0 comments on commit 352c9f6

Please sign in to comment.