Skip to content

Commit

Permalink
fix(workflow): permissions for installers upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Nov 24, 2024
1 parent e3b520b commit b6440aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ jobs:
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.sh > installer.sh
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.ps1 > installer.ps1
- name: generate-token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
with:
app_id: ${{ secrets.BOT2_APP_ID }}
private_key: ${{ secrets.BOT2_APP_PEM }}
revoke: true

- name: upload
uses: softprops/action-gh-release@v2
with:
files: |
installer.sh
installer.ps1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit b6440aa

Please sign in to comment.