Backport 16.x.x into main #2066
Workflow file for this run
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: PullRequest | ||
on: pull_request | ||
permissions: {} | ||
jobs: | ||
ci: | ||
permissions: | ||
contents: read # for actions/checkout | ||
security-events: write # for codeql-action | ||
uses: ./.github/workflows/ci.yml | ||
secrets: | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
Check failure on line 11 in .github/workflows/pull_request.yml
|
||
dependency-review: | ||
name: Security check of added dependencies | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read # for actions/checkout | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Dependency review | ||
uses: actions/dependency-review-action@v2 | ||
diff-npm-package: | ||
name: Diff content of NPM package | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read # for actions/checkout | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Deepen cloned repo | ||
env: | ||
BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"' | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
node-version-file: '.node-version' | ||
- name: Install Dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Generate report | ||
run: 'npm run diff:npm BASE HEAD' | ||
- name: Upload generated report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: npm-dist-diff.html | ||
path: ./reports/npm-dist-diff.html | ||
if-no-files-found: ignore |