Skip to content

Commit

Permalink
Take advantage of Octo STS to publish homebrew updates. (#956)
Browse files Browse the repository at this point in the history
Once the trust policy lands here: chainguard-dev/homebrew-tap#53

This change will enable the release workflow to federate with the Octo STS app to create tokens in accordance with the trust policy and avoid the use of PATs.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
  • Loading branch information
mattmoor authored Jan 23, 2024
1 parent eb44fc3 commit c93170f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ jobs:
version: latest
install-only: true

# Federate to create a token to authenticate with the homebrew-tap repository.
- uses: chainguard-dev/actions/octo-sts@main
id: octo-sts
with:
scope: chainguard-dev/homebrew-tap
identity: melange

- name: Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}

ko-build:
name: Release melange image
Expand Down

0 comments on commit c93170f

Please sign in to comment.