Bladeren bron

fix(action): add github_token input for cache actions to enhance authentication

Co-authored-by: Copilot <copilot@github.com>
TheWildJames 4 maanden geleden
bovenliggende
commit
7507eeac3f
2 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 5 1
      .github/actions/save-cache/action.yml
  2. 2 0
      .github/workflows/build.yml

+ 5 - 1
.github/actions/save-cache/action.yml

@@ -19,6 +19,10 @@ inputs:
     required: false
     type: number
     default: 6
+  github_token:
+    description: 'GitHub token for release upload authentication'
+    required: true
+    type: string
 
 runs:
   using: 'composite'
@@ -26,7 +30,7 @@ runs:
     - name: Archive, Split, and Upload Cache
       shell: bash
       env:
-        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        GH_TOKEN: ${{ inputs.github_token }}
         TARGET_REPO: "${{ github.repository }}"
       run: |
         # Archive, Split, and Upload Cache

+ 2 - 0
.github/workflows/build.yml

@@ -230,6 +230,7 @@ jobs:
         cache_key: buildcache-${{ inputs.kernel_version }}
         cache_bucket: "ccache-cache"
         compression_level: 9
+        github_token: ${{ secrets.GITHUB_TOKEN }}
 
     - name: Save LTO LD cache
       uses: ./.github/actions/save-cache
@@ -238,6 +239,7 @@ jobs:
         cache_key: buildcache-${{ inputs.kernel_version }}
         cache_bucket: "lto-cache"
         compression_level: 9
+        github_token: ${{ secrets.GITHUB_TOKEN }}
 
     - name: Create Bootimgs Folder and Build Boot Images
       uses: ./.github/actions/build-boot-images