BUILD-11835 Guard Vault JSON expressions - #347
jayadeep-km-sonarsource merged 1 commit into
Conversation
d2874fc to
5990750
Compare
Guard all remaining steps.secrets.outputs.vault JSON lookups so empty Vault output does not cause post-job JToken parse errors.
5990750 to
c3d7f03
Compare
Code Review ✅ Approved 1 closed / 1 findingsGuards all remaining ✅ 1 closed✅ Bug: Vault guard audit misses artifactory expressions in 2 actions
Review coverageFunctional validation 3 of 4 objectives covered Implementation Status ◻️ 3 of 4 objectives covered◻️ BUILD-11835 - 3 of 4 objectives coveredThis PR covers guarding the vault JSON expressions in config-gradle and build-gradle actions. Other objectives on this issue, possibly covered elsewhere:
✅ 3 covered here
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



BUILD-11835 Guard Vault JSON expressions
Jira: https://sonarsource.atlassian.net/browse/BUILD-11835
Guard all remaining
fromJSON(steps.secrets.outputs.vault)expressions in composite actions. Empty Vault output now short-circuits to an empty value instead of producing a JToken parsing error during post-job evaluation.Coverage:
config-gradleDevelocity access-key parsing.build-gradlesecret environment values.Validation:
mise exec -- pre-commit run yamllint --files <12 changed action files>git diff origin/master...HEAD --checksonar analyze --base origin/master --format json(0 issues, 0 failures)sonar analyze secrets <12 changed action files>(no issues)./run_shell_tests.shrequires unavailablekcov; direct ShellSpec run reported two failures that CI must confirm.Caveats: No GitHub Actions post-job simulation harness exists locally.
This draft PR was opened by the autonomous factory. A human must mark it ready, approve it, and merge it.