Skip to content

security: harden release workflow and declare workflow_call secrets#487

Merged
cx-luis-ventuzelos merged 4 commits into
mainfrom
fix/workflow-security-hardening
Jun 22, 2026
Merged

security: harden release workflow and declare workflow_call secrets#487
cx-luis-ventuzelos merged 4 commits into
mainfrom
fix/workflow-security-hardening

Conversation

@cx-luis-ventuzelos

@cx-luis-ventuzelos cx-luis-ventuzelos commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace actions/checkout v4.3.1 → v6.0.3 and switch from PERSONAL_ACCESS_TOKEN to GITHUB_TOKEN
  • Fix script injection in Download CLI, Tag, Update POM, Build artifactId, and Publish steps by moving inputs.* context expressions to env vars
  • Replace deprecated ::set-output with $GITHUB_OUTPUT in Tag step
  • Update actions/setup-java v4.3.0 → v5.2.0
  • Add explicit secrets: declaration under workflow_call (MAVEN_GPG_PASSPHRASE, MAVEN_GPG_PRIVATE_KEY, OSSRH_TOKEN, OSSRH_USERNAME)
  • Fix broken shell conditional in Build artifactId property step

Closes #484, closes #486.

@stepsecurity-app

Copy link
Copy Markdown
Contributor

Security Policy Alert: Actions Policy Violation

This workflow run has been blocked by StepSecurity's actions policy.

Disallowed Actions:

  • timonvs/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af

To fix this issue, please modify the workflow to use only allowed actions. Contact your organization administrator to request changes to the allowed actions list if needed.

For more information, see StepSecurity's Actions Policy documentation.

@stepsecurity-app

Copy link
Copy Markdown
Contributor

Security Policy Alert: Secret Policy Violation

This workflow run has been blocked by StepSecurity's secrets policy because it accesses secrets and the workflow file differs from the default branch.

Secret references detected:

  • secrets.GITHUB_TOKEN at line 17
  • secrets.CX_CLIENT_ID at line 62
  • secrets.CX_CLIENT_SECRET at line 63
  • secrets.CX_BASE_URI at line 64
  • secrets.CX_TENANT at line 65
  • secrets.CX_APIKEY at line 66

To approve this workflow, please add the workflows-approved label to this PR.

Note: The label must be added by someone other than the PR author (cx-luis-ventuzelos) or automation bots to ensure proper security review.

After the label is added, you can re-run the blocked workflow to proceed.

This workflow will be automatically approved once merged into the default branch.

For more information, see StepSecurity's Secret Exfiltration Policy documentation.

@cx-anurag-dalke cx-anurag-dalke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

- Replace actions/checkout v4.3.1 with v6.0.3 and switch from PERSONAL_ACCESS_TOKEN to GITHUB_TOKEN
- Fix script injection in Download CLI, Tag, Update POM, Build artifactId, and Publish steps by moving inputs to env vars
- Replace deprecated ::set-output with $GITHUB_OUTPUT in Tag step
- Update actions/setup-java v4.3.0 to v5.2.0
- Add explicit secrets declaration for workflow_call (MAVEN_GPG_PASSPHRASE, MAVEN_GPG_PRIVATE_KEY, OSSRH_TOKEN, OSSRH_USERNAME)
- Fix broken shell conditional in Build artifactId property step
@cx-luis-ventuzelos cx-luis-ventuzelos force-pushed the fix/workflow-security-hardening branch from 71bfedb to 7e0901c Compare June 22, 2026 11:02

@cx-anurag-dalke cx-anurag-dalke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@cx-luis-ventuzelos cx-luis-ventuzelos merged commit 06dafaa into main Jun 22, 2026
2 of 4 checks passed
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 this pull request may close these issues.

2 participants