Skip to content

Commit

Permalink
fix(ci): set final release to use GITHUB_TOKEN (#446)
Browse files Browse the repository at this point in the history
fix(ci): set final release to use GITHUB_TOKEN instead of generated due to API call requirements
  • Loading branch information
adrielp committed Jul 17, 2024
1 parent 66a67bc commit 4831ff3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ jobs:
- name: Fetch all tags
run: git fetch --force --tags

- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ steps.generate_token.outputs.token }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v5
Expand All @@ -57,5 +49,5 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 comments on commit 4831ff3

Please sign in to comment.