fix(sast): disable semgrep metrics via the env var only
This commit is contained in:
parent
1e0113c05f
commit
542d844321
1 changed files with 4 additions and 1 deletions
|
|
@ -20,9 +20,12 @@ jobs:
|
||||||
- name: semgrep
|
- name: semgrep
|
||||||
env:
|
env:
|
||||||
CONFIGS: ${{ inputs.config }}
|
CONFIGS: ${{ inputs.config }}
|
||||||
|
# The env var, not --metrics=off: semgrep 1.90 still prints its
|
||||||
|
# "reports pseudonymous rule metrics" notice for registry configs
|
||||||
|
# when given only the flag, and does not with the env var.
|
||||||
SEMGREP_SEND_METRICS: "off"
|
SEMGREP_SEND_METRICS: "off"
|
||||||
run: |
|
run: |
|
||||||
semgrep --version
|
semgrep --version
|
||||||
set -- scan --error --metrics=off --disable-version-check
|
set -- scan --error --disable-version-check
|
||||||
for c in $CONFIGS; do set -- "$@" --config "$c"; done
|
for c in $CONFIGS; do set -- "$@" --config "$c"; done
|
||||||
semgrep "$@"
|
semgrep "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue