Browse Source

ci: Update github action

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/14628/head
Joas Schilling 4 weeks ago
committed by Dorra Jaouad
parent
commit
3ca6db8388
  1. 5
      .github/workflows/opengrep-scan.yml
  2. 4
      composer.json
  3. 2
      package.json

5
.github/workflows/opengrep-scan.yml

@ -12,7 +12,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install OpenGrep
run: |
@ -21,7 +23,6 @@ jobs:
# Make the binary executable
chmod +x opengrep
# Move the binary to a directory in PATH
sudo mv opengrep /usr/local/bin/opengrep

4
composer.json

@ -23,8 +23,8 @@
"openapi": "generate-spec && (npm run typescript:generate || echo 'Please manually regenerate the typescript OpenAPI models')",
"rector:check": "rector --dry-run",
"rector:fix": "rector",
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs' .",
"opengrep-full": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html' .",
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs'",
"opengrep-full": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html'",
"psalm": "psalm --no-cache --threads=$(nproc)",
"psalm:dev": "@psalm",
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",

2
package.json

@ -17,7 +17,7 @@
"dev": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack.js --node-env development --progress",
"lint": "eslint",
"lint:fix": "eslint --fix",
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --exclude '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html' .",
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --exclude '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html'",
"serve": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack.js serve --node-env development --progress --allowed-hosts all",
"stylelint": "stylelint \"src/**/*.scss\" \"src/**/*.vue\"",
"stylelint:fix": "stylelint \"src/**/*.scss\" \"src/**/*.vue\" --fix",

Loading…
Cancel
Save