devskim test for vulnerabilities #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Let me lint:fix that for you" | |
on: [push] | |
jobs: | |
LMLFTFY: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out Git repository" | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f #v2: v2.3.4 available | |
- name: "Use Node.js 14" | |
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e #v1: v2.x available | |
with: | |
node-version: 16 | |
- name: "Install CLI tools" | |
run: npm install -g @angular/cli | |
- name: "Install application" | |
run: | | |
npm install --ignore-scripts | |
cd frontend | |
npm install --ignore-scripts --legacy-peer-deps | |
- name: "Fix everything which can be fixed" | |
run: 'npm run lint:fix' | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: "Auto-fix linting issues" | |
branch: ${{ github.head_ref }} | |
commit_options: '--signoff' | |
commit_user_name: JuiceShopBot | |
commit_user_email: [email protected] | |
commit_author: JuiceShopBot <[email protected]> |