Skip to content

ci: allow more endpoints for codeql workflow #153

ci: allow more endpoints for codeql workflow

ci: allow more endpoints for codeql workflow #153

name: Build/Test-Versions
on: [ push, pull_request ]
jobs:
build:
name: build/test on node versions
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x, 16.x, 18.x, 19.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776 # 2.2.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
nodejs.org:443
registry.npmjs.org:443
registry.yarnpkg.com:443
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # 3.5.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # 3.6.0
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn type-check
- run: yarn lint
- run: yarn build-prod