Skip to content

Commit

Permalink
Remove top-level permissions in IncrementVersionNumber workflow (#1401)
Browse files Browse the repository at this point in the history
The workflow fails in private repos if top-level (workflow-level)
permissions are defined.
  • Loading branch information
mazhelez authored Jan 17, 2025
1 parent 050b499 commit a8f52dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ on:
type: boolean
default: false

permissions:
actions: read
contents: read

defaults:
run:
shell: powershell
Expand All @@ -43,6 +39,7 @@ jobs:
needs: [ ]
runs-on: [ windows-latest ]
permissions:
actions: read
contents: write
id-token: write
pull-requests: write
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ on:
type: boolean
default: false

permissions:
actions: read
contents: read

defaults:
run:
shell: powershell
Expand All @@ -43,6 +39,7 @@ jobs:
needs: [ ]
runs-on: [ windows-latest ]
permissions:
actions: read
contents: write
id-token: write
pull-requests: write
Expand Down

0 comments on commit a8f52dd

Please sign in to comment.