فهرست منبع

fix: Add Github token to 'Subbrute' build workflow

The commit introduces an environment variable, GITHUB_TOKEN, to the release tag check in the build workflow for the 'Subbrute' application. By passing the Flipper API token, we can now fetch the SHA, version and URL dynamically from the Github API, reducing API calls and potential issues arising from non-existent release tags.
DerSkythe 2 سال پیش
والد
کامیت
4de546486f
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      .github/workflows/build-with-firmwware.yml

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

@@ -104,6 +104,8 @@ jobs:
 
 
       - name: Get SHA of our application
       - name: Get SHA of our application
         shell: pwsh
         shell: pwsh
+        env:
+          GITHUB_TOKEN: ${{ secrets.FLIPPER_TOKEN }}
         run: |
         run: |
           $fwInfo = ((gh release view --json tagName,url -R ${{ matrix.url }}) | ConvertFrom-Json)
           $fwInfo = ((gh release view --json tagName,url -R ${{ matrix.url }}) | ConvertFrom-Json)
           cd '${{ env.APP_PATH }}'
           cd '${{ env.APP_PATH }}'