build: harden GitHub Workflow permissions

Signed-off-by: Alex Low <aleksandrosansan@gmail.com>
This commit is contained in:
Alex
2022-09-19 17:51:59 +02:00
parent cb6dc32635
commit 091917a4a1
@@ -5,8 +5,15 @@ on:
types: types:
- published - published
permissions:
contents: read
jobs: jobs:
publish-release-artifacts: publish-release-artifacts:
permissions:
contents: read # to fetch code (actions/checkout)
actions: write # to attach binaries to release artifacts (skx/github-action-publish-binaries)
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')