chore(ops): restart policy + todo notes #46
@@ -62,10 +62,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# The runner image lacks pip, and a semgrep job-container lacks the node that
|
# The runner image lacks pip, and a semgrep job-container lacks the node that
|
||||||
# actions/checkout needs — so install pip via apt on the standard image.
|
# actions/checkout needs — so install pip via apt on the standard image.
|
||||||
|
# Gitea's Act runner has no sudo binary but already runs as root, so call
|
||||||
|
# apt-get directly; pip install --user needs no pipx.
|
||||||
- name: Install semgrep
|
- name: Install semgrep
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq && sudo apt-get install -y -qq python3-pip pipx
|
apt-get update -qq && apt-get install -y -qq python3-pip
|
||||||
pipx install semgrep
|
python3 -m pip install --user --break-system-packages semgrep || python3 -m pip install --user semgrep
|
||||||
- name: Semgrep scan
|
- name: Semgrep scan
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user