]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: GitHub workflows security hardening (#6743)
authorAlex <aleksandrosansan@gmail.com>
Wed, 28 Sep 2022 02:36:47 +0000 (05:36 +0300)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2022 02:36:47 +0000 (22:36 -0400)
.github/workflows/ci.yml
.github/workflows/release-tag.yml

index eadcd94f6d832f9adeeb7b6ee73451ea393bfde0..3128dd2cb4f334b00ded9e1af29c355a4e3ea7fe 100644 (file)
@@ -6,6 +6,10 @@ on:
   pull_request:
     branches:
       - main
+
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
   unit-test:
     runs-on: ubuntu-latest
index d9ea7a07f72551f0a1b8ce6ee9186876eecc4cc6..16c6c9c5c10f3c3a3510631c53f770c885731417 100644 (file)
@@ -5,8 +5,12 @@ on:
 
 name: Create Release
 
+permissions: {}
 jobs:
   build:
+    permissions:
+      contents: write # to create release (yyx990803/release-tag)
+
     name: Create Release
     runs-on: ubuntu-latest
     steps: