Add supply chain security defaults #401
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: 'build-test' | |
| on: # rebuild any PRs and main branch changes | |
| pull_request: | |
| branches: | |
| - main | |
| - 'releases/*' | |
| push: | |
| branches: | |
| - main | |
| - 'releases/*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: # make sure build/ci work properly | |
| runs-on: ubuntu-latest | |
| steps: | |
| # TODO(security): Review pinning GitHub-owned actions to full commit SHAs once an update process is in place. | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Run all NPM build/test actions | |
| run: npm run all |