-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial GitLab support (via env var) * test: Test buildkite when not in buildkite env This brings ambient.py coverage to 100%. * test: Test detect_env_var() * lint fixes * Add a changelog entry for detect_env_var() * Refactor env var detection to gitlab detection Based on feedback: * Instead of generic env var handling, make the detector only work on gitlab (based on GITLAB_CI variable) * Handle audience args that begin with a digit (replace with "_" in the env var name) * Raise if we are in GitLab environment but token is not found * Tweak README based on these changes This does seem much better as a misconfigured pipeline (e.g. a missing id_tokens section) now results in the following with sigstore: $ python -m sigstore sign README.md An issue occurred with ambient credential detection. Additional context: GitLab: Environment variable SIGSTORE_ID_TOKEN not found which seems pretty good to me. --------- Co-authored-by: Dustin Ingram <[email protected]>
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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