Skip to content

Commit

Permalink
put permission under correct job only
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos committed Feb 19, 2024
1 parent 56691a8 commit 24d9ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-go-nightly-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ jobs:
- create-nightly-artifacts
- notarize-macos
- create-windows-installer
permissions:
contents: write
id-token: write # This is required for requesting the JWT

steps:
- name: Checkout repository
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
create-release-artifacts:
outputs:
Expand Down Expand Up @@ -242,6 +238,7 @@ jobs:
- create-windows-installer
permissions:
contents: write
id-token: write # This is required for requesting the JWT

steps:
- name: Checkout repository
Expand Down

0 comments on commit 24d9ebb

Please sign in to comment.