Push images to AWS ECR #8
Workflow file for this run
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: Run npm audit on PR's | |
on: | |
pull_request: | |
types: [opened, synchronize] # Trigger on PR opened and when changes are pushed to the PR | |
jobs: | |
npm-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # Specify the Node.js version | |
- name: Install dependencies | |
run: npm install | |
working-directory: src | |
- name: Run npm audit | |
run: npm audit --audit-level=high | |
working-directory: src |