Skip to content

Commit

Permalink
Update workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg committed Apr 25, 2024
1 parent 15b7658 commit 54e6eba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ jobs:

runs-on: windows-2019

permissions:
checks: write
permissions: write-all

env:
Configuration: Release
Release_body: ${{ needs.update_release_draft.outputs.Release_body }}

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}

- name: Dump needs context
env:
NEEDS_CONTEXT: ${{ toJson(needs) }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ on:
jobs:
publish:
runs-on: windows-latest
permissions: write-all

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}

- name: Download Assets
uses: i3h/[email protected]
Expand Down

0 comments on commit 54e6eba

Please sign in to comment.