Repository navigation
Push the provider sync with a deploy key instead of a PAT - #42
Merged
Merged
Conversation
The 0.2.0 release's "Push + Tag Provider" job failed: TF_PROVIDER_GITHUB_TOKEN, a PAT last used for v0.1.12 in January, was no longer accepted. The job now pushes over SSH with TF_PROVIDER_DEPLOY_KEY, a deploy key with write access to terraform-provider-logstruct only, which doesn't expire. GitHub's host keys come from api.github.com/meta, and the job stops with a clear error, before changing anything, if the secret is missing or GitHub doesn't accept it. A workflow test checks that. AGENTS.md describes the deploy key and the provider repo's GPG signing key, which the Terraform Registry checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 0.2.0 release's "Push + Tag Provider" job (run) failed with
could not read Username: GitHub no longer acceptedTF_PROVIDER_GITHUB_TOKEN, a PAT last used for v0.1.12 in January. A local test of the same push showed that both a wrong token and an empty one fail with exactly that message, and a valid token works.Changes
TF_PROVIDER_DEPLOY_KEY(areleaseenvironment secret): a deploy key with write access toterraform-provider-logstructonly. Deploy keys don't expire.api.github.com/meta, so the key is only offered to github.com.release_workflow_test.rbchecks the job uses the deploy key, no longer uses the token, and checks the key before cloning.AGENTS.mddescribes the deploy key and the provider repo's GPG signing key.Tested
Already done for v0.2.0
TF_PROVIDER_DEPLOY_KEYsecret.v0.2.0.TF_PROVIDER_GITHUB_TOKENsecret gets deleted.Summary by CodeRabbit