chore(deps): update sonarsource/sonarqube-scan-action action to v8 #889
This file contains hidden or 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: Package Audit | |
| on: | |
| push: | |
| paths: | |
| - package.json | |
| - package-lock.json | |
| - .github/workflows/package-audit.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| audit-npm: | |
| name: NPM Audit | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| disable-sudo: true | |
| allowed-endpoints: | |
| api.github.com:443 | |
| github.com:443 | |
| objects.githubusercontent.com:443 | |
| nodejs.org:443 | |
| registry.npmjs.org:443 | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/* | |
| - name: Run audit | |
| run: npm audit --production |