Skip to content

gitlab-ci workflows reference token.txt which is no longer being created #1592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
llamashoes opened this issue Aug 14, 2023 · 2 comments · Fixed by #1593
Closed

gitlab-ci workflows reference token.txt which is no longer being created #1592

llamashoes opened this issue Aug 14, 2023 · 2 comments · Fixed by #1593
Assignees

Comments

@llamashoes
Copy link

llamashoes commented Aug 14, 2023

I referenced the issue on the relevant commit from a few weeks ago:
47daeaa#r124479639

{
  "type": "external_account",
  "audience": "xxx",
  "subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
  "token_url": "https://sts.googleapis.com/v1/token",
  "credential_source": {
    "file": "token.txt"
  },
  "service_account_impersonation_url": "xxx",
  "service_account_impersonation": {
    "token_lifetime_seconds": 3[60](https://gitlab.com/xxxxx)0
  }
}

The issue seems to be related to the generated credentials.json referencing token.txt as the credential_source but that file is no longer being created in the defaults of the pipeline. This causes the pipelines to fail on rm token.txt as well as any stage after the gcp-auth stage.

ERROR: (gcloud.alpha.storage.cp) There was a problem refreshing your current auth tokens: File 'token.txt' was not found.
@ludoo
Copy link
Collaborator

ludoo commented Aug 14, 2023

Ouch. Thanks for spotting this, I can try getting to the bottom of this tomorrow, but do send a PR if you get there first.

@ludoo ludoo self-assigned this Aug 14, 2023
@llamashoes
Copy link
Author

Will do. You may beat me to it, but I will take look as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants