Skip to content

[StepSecurity] Apply security best practices #754

[StepSecurity] Apply security best practices

[StepSecurity] Apply security best practices #754

Workflow file for this run

name: Style Checks
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
if: github.repository == 'nodejs/node-addon-api'
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0
- run: git branch -a
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: FORMAT_START=refs/remotes/origin/main npm run lint