فهرست منبع

chore: Move workflow permissions to job level

Michael Bromley 2 روز پیش
والد
کامیت
b3e1a9349b
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      .github/workflows/publish_to_npm.yml

+ 3 - 4
.github/workflows/publish_to_npm.yml

@@ -20,10 +20,6 @@ on:
           - master-nightly
           - master-nightly
           - minor-nightly
           - minor-nightly
 
 
-permissions:
-  contents: read
-  id-token: write
-
 jobs:
 jobs:
   # Determine which publish type(s) to run based on trigger
   # Determine which publish type(s) to run based on trigger
   setup:
   setup:
@@ -45,6 +41,9 @@ jobs:
   publish:
   publish:
     needs: setup
     needs: setup
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      id-token: write
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix: