]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Permissions on Publish Release Artifacts Job 3511/head
authorW. Felix Handte <w@felixhandte.com>
Wed, 15 Feb 2023 15:48:21 +0000 (10:48 -0500)
committerW. Felix Handte <w@felixhandte.com>
Wed, 15 Feb 2023 16:05:54 +0000 (11:05 -0500)
Publishing release artifacts requires the `contents` permission, as documented
by: https://docs.github.com/en/rest/overview/permissions-required-for-github-apps.

.github/workflows/publish-release-artifacts.yml

index 39da42d157c2b6ce732f9ba71a300ad672089cb1..f09e5ff3160ef2bb7ed28c197b086d77f6514b42 100644 (file)
@@ -10,8 +10,7 @@ permissions: read-all
 jobs:
   publish-release-artifacts:
     permissions:
-      contents: read # to fetch code (actions/checkout)
-      actions: write # to attach binaries to release artifacts (skx/github-action-publish-binaries)
+      contents: write # to fetch code and upload artifacts
 
     runs-on: ubuntu-latest
     if: startsWith(github.ref, 'refs/tags/')