Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: run psalm from vendor dir #40

Merged
merged 1 commit into from
May 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,29 @@ jobs:
runs-on: "ubuntu-20.04"

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: Psalm
uses: docker://vimeo/psalm-github-actions:4.4.1
- name: Install librdkafka
run: |
chmod +x .ci/install_rdkafka.sh
.ci/install_rdkafka.sh

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
args: --shepherd
composer_ignore_platform_reqs: true
composer_require_dev: true
security_analysis: true
report_file: results.sarif
env:
CHECK_PLATFORM_REQUIREMENTS: "false"
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
php-version: "8.0"
coverage: "none"
extensions: "rdkafka"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run a static analysis with vimeo/psalm"
run: "vendor/bin/psalm --output-format=github --shepherd --taint-analysis --report=results.sarif"

- name: "Upload Security Analysis results to GitHub"
uses: "github/codeql-action/upload-sarif@v1"
with:
sarif_file: results.sarif