Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

updated security fix on composer.lock #48

Merged
merged 5 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
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
43 changes: 31 additions & 12 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,37 @@ concurrency:
cancel-in-progress: true

jobs:
security:
name: 'Security check'
runs-on: ubuntu-latest
security:
name: 'Security Check'
runs-on: ubuntu-latest

# Don't run the cronjob in this workflow on forks.
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'webdevstudios')
# Ensure the cron job runs only on the main repository, not forks.
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'webdevstudios')

steps:
- name: Checkout code
uses: actions/checkout@v4
steps:
- name: Checkout code
uses: actions/checkout@v4

# This action checks the `composer.lock` file against known security vulnerabilities in the dependencies.
# https://github.com/marketplace/actions/the-php-security-checker
- name: Run Security Check
uses: symfonycorp/security-checker-action@v5
- name: Cache Composer dependencies
# Automatically uses Node.js 20 after March 2024
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install PHP dependencies
run: composer install --no-progress --no-suggest --prefer-dist

- name: Run Security Check
uses: symfonycorp/security-checker-action@v5
with:
lock: ./composer.lock
format: ansi
disable-exit-code: true

- name: Post Security Check Summary
if: always()
run: |
echo "Security check completed. Review the output for any detected vulnerabilities."
Loading
Loading