Skip to content

Commit 52e5f72

Browse files
authored
try the gh action
1 parent 3aee64c commit 52e5f72

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/php-sast.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v6
2323

24-
# - name: Validate composer.json and composer.lock
25-
# run: composer validate --strict
26-
2724
# This config file gets auto-loaded by Psalm
2825
# !!!! The old bcc-signon plugin and the bcc-wp-proxy plugin are excluded from analysis!
2926
- name: Set Psalm config
@@ -83,12 +80,12 @@ jobs:
8380
function get_culture() {};
8481
EOF
8582
86-
- name: Install Psalm and Wordpress stubs
83+
- name: Install Wordpress plugin for Psalm
8784
run: |
88-
composer require --dev vimeo/psalm
89-
composer require --dev humanmade/psalm-plugin-wordpress
90-
./vendor/bin/psalm-plugin enable humanmade/psalm-plugin-wordpress
85+
composer require humanmade/psalm-plugin-wordpress
9186
9287
- name: Run Psalm
93-
run: ./vendor/bin/psalm --no-cache
88+
uses: docker://ghcr.io/psalm/psalm-github-actions
89+
with:
90+
security_analysis: true
9491

0 commit comments

Comments
 (0)