-
Notifications
You must be signed in to change notification settings - Fork 522
Labels
bugSomething isn't workingSomething isn't working
Description
TL;DR
GOOGLE_APPLICATION_CREDENTIALS should be stored in the action temporary directory, not in the checked out repository. Doing so creates a dirty git state.
Expected behavior
git state is not dirty after exporting GOOGLE_APPLICATION_CREDENTIALS.
Observed behavior
git state is dirty and shows up in automatic version detection and other release automation tools. https://goreleaser.com/, for instance, will hard fail if git state is dirty during a non-snapshot release.
Reproduction
Action YAML
name: Release
on:
release:
types:
- published
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
project_id: myproject
service_account_key: ${{ secrets.GCP_SERVICE_ACCOUNT }}
export_default_credentials: true
- name: Gcloud login
run: gcloud auth configure-docker
- name: Check git status
run: git status
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --config .github/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Repository
https://github.com/pomerium/pomerium/runs/891636795#step:9:31
Additional information
No
haizaar and rollulus
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working