Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
add explicit permissions to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArloL committed Dec 27, 2023
1 parent cce8aee commit 86fd43e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
run: set
version:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_version: ${{ steps.output.outputs.new_version }}
steps:
Expand Down Expand Up @@ -169,6 +171,8 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [version, macos, linux, windows]
permissions:
contents: write
steps:
- uses: actions/[email protected]
- name: Download all workflow run artifacts
Expand Down Expand Up @@ -244,6 +248,8 @@ jobs:
needs: [version, macos, linux, windows]
if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/dependabot/') }}
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
Expand Down

0 comments on commit 86fd43e

Please sign in to comment.