CI: eslint-plugin-security and zizmor; harden the workflow #65
@@ -138,7 +138,7 @@ jobs:
|
||||
tar -xzf gitleaks.tgz -C /usr/local/bin gitleaks
|
||||
tar -xzf actionlint.tgz -C /usr/local/bin actionlint
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends shellcheck >/dev/null
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends shellcheck python3-venv >/dev/null # venv: zizmor and semgrep
|
||||
- name: Secrets in code and history (gitleaks)
|
||||
run: gitleaks git --no-banner --redact --exit-code 1 .
|
||||
- name: Workflow files (actionlint, with shellcheck on run scripts)
|
||||
@@ -155,7 +155,6 @@ jobs:
|
||||
# Rule packs come from the semgrep registry, so new rules can surface new
|
||||
# findings: fix them, or suppress one line with `nosemgrep: <rule id>` and a reason.
|
||||
run: |
|
||||
apt-get install -y -qq --no-install-recommends python3-venv >/dev/null
|
||||
python3 -m venv /tmp/semgrep && /tmp/semgrep/bin/pip install -q semgrep==1.184.0
|
||||
# Pulse's own rules must still catch their test cases before they're trusted.
|
||||
/tmp/semgrep/bin/semgrep --metrics=off --test --config .semgrep/pulse.yml .semgrep/pulse.js
|
||||
|
||||
Reference in new issue
Block a user