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 03ac85f commit 1a3472f
Show file tree
Hide file tree
Showing 3 changed files with 10 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/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 1a3472f

Please sign in to comment.