Securing permissions - AppSec Pod #959 #2187
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
name: Check formatting | |
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: read | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | |
- name: Setup node | |
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b | |
with: | |
node-version-file: '.node-version' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Check code style | |
run: npm run format:check |