Skip to content

Commit

Permalink
ci: obtain write token using octo sts
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Jul 17, 2024
1 parent ae36c5e commit 51c43e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Install Syft
uses: anchore/sbom-action/[email protected]

- uses: octo-sts/[email protected]
id: sts-homebrew
with:
scope: FriendsOfShopware/homebrew-tap
identity: release

- name: Login into Github Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

Expand All @@ -51,7 +57,7 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.sts-homebrew.outputs.token }}
AUR_KEY: ${{ secrets.AUR_KEY }}

- name: Install Cloudsmith CLI
Expand Down

0 comments on commit 51c43e3

Please sign in to comment.