From 4de546486f8ebc9685e6e5d242f8a70a39dcabd1 Mon Sep 17 00:00:00 2001 From: DerSkythe Date: Tue, 19 Dec 2023 10:00:04 +0400 Subject: [PATCH] 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. --- .github/workflows/build-with-firmwware.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-with-firmwware.yml b/.github/workflows/build-with-firmwware.yml index 97b81da..a20b44f 100644 --- a/.github/workflows/build-with-firmwware.yml +++ b/.github/workflows/build-with-firmwware.yml @@ -104,6 +104,8 @@ jobs: - name: Get SHA of our application shell: pwsh + env: + GITHUB_TOKEN: ${{ secrets.FLIPPER_TOKEN }} run: | $fwInfo = ((gh release view --json tagName,url -R ${{ matrix.url }}) | ConvertFrom-Json) cd '${{ env.APP_PATH }}'