Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimal permissions to some actions workflows #312

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading