Skip to content

Commit

Permalink
fix: Add Github token to 'Subbrute' build workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derskythe committed Dec 19, 2023
1 parent 5b5c867 commit 4de5464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-with-firmwware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down

0 comments on commit 4de5464

Please sign in to comment.