Skip to content

Commit

Permalink
Add minimal permissions to some actions workflows (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Jan 26, 2025
1 parent 9fac642 commit 5c71f48
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/announce-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

concurrency: announce-a-release

permissions:
packages: read
contents: write

jobs:
announce:
name: Announcements
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/breakage-against-linux-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-ponyc-main-linux:
name: Verify main against ponyc main on Linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
repository_dispatch:
types: [ponyc-arm64-macos-nightly-released]

permissions:
packages: read

jobs:
vs-ponyc-main-macos:
name: Verify main against ponyc main on arm64 macOS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/breakage-against-macos-x86-ponyc-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
repository_dispatch:
types: [ponyc-x86_64-macos-nightly-released]

permissions:
packages: read

jobs:
vs-ponyc-main-macos:
name: Verify main against ponyc main on x86-64 macOS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/latest-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: build-latest-docker-images
cancel-in-progress: true

permissions:
packages: write

jobs:
build-latest-docker-image:
name: Build and push latest Docker image
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
packages: read

jobs:
x86-64-unknown-linux-nightly:
name: Build and upload x86-64-unknown-linux-nightly to Cloudsmith
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 @@ -7,6 +7,10 @@ on:

concurrency: prepare-for-a-release

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
1 change: 0 additions & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

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

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

concurrency: release

permissions:
packages: write
contents: write

jobs:
# validation to assure that we should in fact continue with the release should
# be done here. the primary reason for this step is to verify that the release
Expand Down

0 comments on commit 5c71f48

Please sign in to comment.