Skip to content

Potential fix for code scanning alert no. 1: Excessive Secrets Exposure - #22

Merged
sivertheisholt merged 1 commit into
mainfrom
fix/excessive-secrets-exposure
Dec 4, 2026
Merged

sivertheisholt merged 1 commit into
mainfrom
fix/excessive-secrets-exposure

Conversation

@sivertheisholt

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/FINTLabs/pgerator/security/code-scanning/1

To fix this without changing functionality, replace the single dynamic azure/login step with multiple azure/login steps, each guarded by an if: condition for a specific environment value and each using a statically named secret (for example secrets.AKS_DEV_FINT_GITHUB, secrets.AKS_PROD_FINT_GITHUB, etc.). This allows GitHub to determine exactly which secret is needed per step and prevents broad secret exposure.

In .github/workflows/.cluster-deploy.yaml, edit the region around lines 32–35:

  • Remove the dynamic secret expression.
  • Add explicit login steps for each supported environment input.
  • Keep the rest of the workflow unchanged.

No imports, methods, or dependencies are required since this is YAML workflow logic only.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@sivertheisholt
sivertheisholt marked this pull request as ready for review December 2, 2026 08:21
@sivertheisholt
sivertheisholt requested a review from a team as a code owner December 2, 2026 08:21
@sivertheisholt
sivertheisholt merged commit c60b80a into main Dec 4, 2026
4 checks passed
@sivertheisholt
sivertheisholt deleted the fix/excessive-secrets-exposure branch December 4, 2026 15:12
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