SEAB-6777: Improve formatting of workflow "Versions" table #790
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: npm audit test | |
on: pull_request | |
jobs: | |
npm-audit-test: | |
name: npm audit test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
# Fetches all history for all branches and tags | |
# Needed because the audit script checks out the base branch | |
fetch-depth: 0 | |
- name: Install npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Run npm audit | |
# Run npm audit on current branch and compare it with the results of running npm audit on the base branch that is set in the built-in $GITHUB_BASE_REF environment variable. | |
# If there are more high or critical findings in the current branch, then the test fails. If the same number of findings are found, then check that the vulnerabilities are the same. | |
# If they are are different, then the test fails. | |
run: npm run compare-audits -- $GITHUB_BASE_REF | |
- name: Run signature check | |
# Compares the signatures generated by npm locally to those provided by the registry. | |
run: npm audit signatures |