Skip to content

Commit

Permalink
chore: update permissions in GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Aug 27, 2024
1 parent 4685e5b commit dd9f2c1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ permissions:
contents: write
pages: write
id-token: write
packages: write
attestations: write


jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
types: [published]
workflow_dispatch:

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

jobs:
Build_Linux_binaries:
uses: ./.github/workflows/ubuntu.yml
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main

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

jobs:
build:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- main

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

jobs:
build:
runs-on: windows-latest
Expand Down

0 comments on commit dd9f2c1

Please sign in to comment.