Skip to content

Commit

Permalink
Fix the token used to cut new releases
Browse files Browse the repository at this point in the history
Reference the token automatically generated by GitHub.
  • Loading branch information
davewalter committed Oct 29, 2024
1 parent f1b836e commit 2719091
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@ jobs:

- name: Build
run: go build ./...

- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.RELENG_CI_BOT_KEY }}

- name: Unit Test
env:
RELEEN_GITHUB_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
run: |
export GITHUB_ACCESS_TOKEN="${RELEEN_GITHUB_TOKEN}"
go test --covermode=atomic --coverprofile=kiln-${{github.sha}}-unit-test-code-coverage.out ./...
- name: Archive Unit Test Code Coverage Output
Expand All @@ -49,14 +48,13 @@ jobs:
- name: Acceptance Tests
env:
CGO_ENABLED: '0'
RELEEN_GITHUB_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
run: |
set -euo pipefail
export GITHUB_ACCESS_TOKEN="${RELEEN_GITHUB_TOKEN}"
set -x
go test -v --timeout 24h --tags acceptance github.com/pivotal-cf/kiln/internal/acceptance/workflows
git reset --hard HEAD
- name: Login to Docker Hub
Expand All @@ -79,5 +77,5 @@ jobs:
version: "~> v1"
args: release --clean
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}
GITHUB_ACCESS_TOKEN: ${{ github.token }}

0 comments on commit 2719091

Please sign in to comment.