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 be0f2ac commit edc976f
Show file tree
Hide file tree
Showing 9 changed files with 31 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 @@ -6,6 +6,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:
linux:
name: Verify main against the latest ponyc 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:
macos:
name: Verify main against the latest ponyc on 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:
macos:
name: Verify main against the latest ponyc on macOS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/breakage-against-windows-ponyc-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
repository_dispatch:
types: [ponyc-windows-nightly-released]

permissions:
packages: read

jobs:
windows:
name: Verify main against the latest ponyc on Windows
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Manually generate documentation
on:
workflow_dispatch

permissions:
contents: read
pages: write
id-token: write
packages: read

jobs:
generate-documentation:
name: Generate documentation for release
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

0 comments on commit edc976f

Please sign in to comment.