Repository navigation
[release/3.x] Also mask the GitHub OIDC ID token in jfrog-oidc-token.sh - #2346
Merged
Merged
Conversation
jfrog-oidc-token.sh masks the JFrog access token but not the GitHub OIDC ID token it exchanges for it. Fail clearly if the ID token is empty or null, the same way the script already checks the access token, then mask it with ::add-mask:: before it is used. The secret masking regression test now also asserts that the ID token is masked. Co-authored-by: Isaac <no-reply@databricks.com>
anton-107
temporarily deployed
to
test-trigger-is
November 24, 2026 13:29 — with
GitHub Actions
Inactive
anton-107
temporarily deployed
to
test-trigger-is
November 24, 2026 13:31 — with
GitHub Actions
Inactive
anton-107
temporarily deployed
to
test-trigger-is
November 24, 2026 13:31 — with
GitHub Actions
Inactive
Contributor
|
🤖 Integration tests ✅ passed for |
anton-107
marked this pull request as ready for review
November 24, 2026 15:51
louis-johnston-db
approved these changes
Nov 24, 2026
This branch was previously deployed
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.
Changes
release/3.xcounterpart of #2345 (main); the commit cherry-picked cleanly.Follow-up to #2291 and #2334, which mask the JFrog access token.
jfrog-oidc-token.shstill never masksID_TOKEN, the GitHub OIDC token it exchanges for the JFrog token. The ID token is short-lived and audience-scoped, but it is still a bearer credential for that exchange, so it should be masked as well.jfrog-oidc-token.sh: right after the ID token is fetched, fail with a clear message if it is empty ornull(same check as the existing one forACCESS_TOKEN), then mask it with::add-mask::. The check runs first, so::add-mask::never gets an empty value.tests/secret-masking.sh: the regression test already stubs the OIDC response with a fake ID token. It now also asserts that the job log contains::add-mask::<id token>. The token is never written to$GITHUB_ENVor an rc file, so the existing sink-based ordering check does not apply to it; this adds only a presence assertion, next to the existing one for the JFrog token.Tracked as DECO-29704 (follow-up to SEC-35859).
Tests
bash .github/scripts/tests/secret-masking.shpasses on this branch.::add-mask::line is removed fromjfrog-oidc-token.sh.curl, that the script exits 1 withFAIL: Could not extract GitHub OIDC ID tokenwhen the OIDC response is empty,{}or{"value": null}.This pull request and its description were written by Isaac.