Merge pull request #113 from myrotvorets/renovate/step-security-harde… #266
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- name: LTS | |
version: 'lts/*' | |
- name: Previous LTS | |
version: 'lts/-1' | |
- name: Current | |
version: current | |
name: Build and test (Node ${{ matrix.node.name }}) | |
permissions: | |
contents: read | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- name: Build and test | |
uses: myrotvorets/composite-actions/build-test-nodejs@891217d03e6cc61662f38369172e982a8014a865 | |
with: | |
node-version: ${{ matrix.node.version }} |