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 b8b4f1f commit 770cc04
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/announce-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags: 'announce-[0-9]+.[0-9]+.[0-9]+'

permissions:
packages: read
contents: write

jobs:
announce:
name: Announcements
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/breakage-against-ponyc-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
repository_dispatch:
types: [shared-docker-linux-builders-updated]

permissions:
packages: read

jobs:
vs-latest-ponyc:
name: Verify main against the latest ponyc
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
4 changes: 4 additions & 0 deletions .github/workflows/prepare-for-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags: 'release-[0-9]+.[0-9]+.[0-9]+'

permissions:
packages: read
contents: write

jobs:
# all tasks that need to be done before we add an X.Y.Z tag
# should be done as a step in the pre-tagging job.
Expand Down

0 comments on commit 770cc04

Please sign in to comment.