]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
build: harden GitHub Workflow permissions 3264/head
authorAlex <aleksandrosansan@gmail.com>
Mon, 19 Sep 2022 15:51:59 +0000 (17:51 +0200)
committerAlex <aleksandrosansan@gmail.com>
Mon, 19 Sep 2022 15:51:59 +0000 (17:51 +0200)
Signed-off-by: Alex Low <aleksandrosansan@gmail.com>
.github/workflows/publish-release-artifacts.yml

index a87a75efa493cb99d4be0b446f653eb7bd2058cd..fb9c3ec14afd701e3afa6847058df9b522785765 100644 (file)
@@ -5,8 +5,15 @@ on:
     types:
       - published
 
+permissions:
+  contents: read
+
 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)
+
     runs-on: ubuntu-latest
     if: startsWith(github.ref, 'refs/tags/')