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

Activate composer audit by default (instead of roave security advisories) #12

Merged
merged 1 commit into from
May 17, 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
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,30 @@ composer recipes
composer recipes:install THE/DEPENDENCY --force -v
```

### roave/security-advisories

```bash
composer require --dev roave/security-advisories:dev-master
```
### composer audit (security-advisories)

```yaml
# grumphp.yaml
parameters:
run_security_advisories: true
```

You might want to alter the default composer audit configuration in your local composer.json file.

For example if you don't want to fail CI on usage of abandoned packages:

```json
{
"config": {
"audit": {
"abandoned": "report"
}
}
}
```

[See official docs for more information.](https://getcomposer.org/doc/06-config.md#audit)

### phpstan/phpstan

```bash
Expand Down
6 changes: 2 additions & 4 deletions grumphp-convention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
stop_on_first_failure: false
run_phpstan: false
run_psalm: false
run_security_advisories: false
run_security_advisories: true
grumhp_exec_command: kevin app php
phpstan.level: "max"
phpunit.parallel: true
Expand Down Expand Up @@ -61,9 +61,7 @@ grumphp:
phpcsfixer:
config: ".php-cs-fixer.php"
config_contains_finder: true
securitychecker_roave:
jsonfile: ./composer.json
lockfile: ./composer.lock
securitychecker_composeraudit:
run_always: true
metadata:
enabled: "%run_security_advisories%"
Loading