secret-blast-radius 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/action.yml +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ permissions:
|
|
|
99
99
|
security-events: write
|
|
100
100
|
steps:
|
|
101
101
|
- uses: actions/checkout@v4
|
|
102
|
-
- uses: Krrishkumar125/secret-blast-radius@v0.2.
|
|
102
|
+
- uses: Krrishkumar125/secret-blast-radius@v0.2.1
|
|
103
103
|
with:
|
|
104
104
|
fail-on: critical
|
|
105
105
|
- uses: github/codeql-action/upload-sarif@v3
|
package/action.yml
CHANGED
|
@@ -36,6 +36,10 @@ runs:
|
|
|
36
36
|
SBR_SARIF: ${{ inputs.sarif-file }}
|
|
37
37
|
SBR_VERSION: ${{ inputs.version }}
|
|
38
38
|
run: |
|
|
39
|
-
|
|
39
|
+
ws="$(pwd)"
|
|
40
|
+
case "$SBR_SARIF" in /*|[A-Za-z]:*) sarif="$SBR_SARIF" ;; *) sarif="$ws/$SBR_SARIF" ;; esac
|
|
41
|
+
args=(--only "$SBR_ONLY" --fail-on "$SBR_FAIL_ON" --sarif-file "$sarif")
|
|
40
42
|
if [ -n "$SBR_INCIDENT" ]; then args+=(--incident "$SBR_INCIDENT"); fi
|
|
41
|
-
npx
|
|
43
|
+
# Run from a neutral directory so npx never resolves a local package.json instead of the registry.
|
|
44
|
+
cd "${RUNNER_TEMP:-/tmp}"
|
|
45
|
+
npx --yes "secret-blast-radius@${SBR_VERSION}" "${args[@]}" "$ws"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secret-blast-radius",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "What would a malicious npm install steal from this machine or CI runner? Ranked inventory of reachable credentials, known-worm IOCs (Shai-Hulud, @subql, GhostAction), PHP2Shell and PaaS exposure checks, ordered rotation runbook, SARIF. Read-only, offline, never prints secrets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Krrish Kumar (https://github.com/Krrishkumar125)",
|