mirror of
https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2025-10-03 16:20:58 +08:00
modified: .github/workflows/security.yml
This commit is contained in:
parent
9f994d88e6
commit
46f5ecf2b9
1 changed files with 6 additions and 4 deletions
10
.github/workflows/security.yml
vendored
10
.github/workflows/security.yml
vendored
|
@ -30,6 +30,10 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Create dependency file first so caching has a key
|
||||
- name: Seed pip cache key
|
||||
run: echo "semgrep" > requirements-semgrep.txt
|
||||
|
||||
- name: Set up Python (with pip cache)
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
@ -37,16 +41,14 @@ jobs:
|
|||
cache: 'pip'
|
||||
cache-dependency-path: 'requirements-semgrep.txt'
|
||||
|
||||
- name: Seed pip cache key
|
||||
run: echo "semgrep" > requirements-semgrep.txt
|
||||
|
||||
- name: Install Semgrep
|
||||
run: pip install -r requirements-semgrep.txt
|
||||
|
||||
- name: Run Semgrep (PHP) and output SARIF
|
||||
run: |
|
||||
semgrep --config=p/php \
|
||||
--include root \
|
||||
--include mu-plugins \
|
||||
--include update-api \
|
||||
--exclude vendor \
|
||||
--exclude node_modules \
|
||||
--exclude dist \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue