fix: line content for repeated secrets and 10K byte lines - #399
cx-diogo-rocha wants to merge 11 commits into
Conversation
Original alert (resolved)Security Policy Alert: Secret Policy ViolationThis 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:
To approve this workflow, please add the Note: The label must be added by someone other than the PR author (cx-diogo-rocha) 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. |
|
| Secret Type | Status | Commit | File Path | View |
|---|---|---|---|---|
| GoogleGeminiAPIKey | 7ffc56ebdb |
engine/engine_test.go |
🔎 View secret | |
| GoogleGeminiAPIKey | 7ffc56ebdb |
engine/engine_test.go |
🔎 View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Immediately rotate/revoke the exposed secret. (https://howtorotate.com/docs/introduction/getting-started/)
- Remove it from git history ( a new "remove secret" commit is NOT enough e.g. with
git-filter-repo).
To avoid such incidents in the future consider:
- Following the best practices for managing and storing secrets, including API keys and other credentials.
- Re-scan after cleanup before merging.
⚠️ These are unverified matches and do not block the merge — please review and confirm they are not real secrets.
Closes #
Proposed Changes
Fixes to line content on these cases:
Checklist
I submit this contribution under the Apache-2.0 license.