Formatting and permissions

This commit is contained in:
Nick Alteen
2023-11-27 23:58:26 -05:00
parent ad96ae8798
commit 088f3307ee
4 changed files with 36 additions and 37 deletions

View File

@ -1,23 +1,19 @@
name: Lint Code Base
name: Lint Codebase
on:
pull_request:
push:
branches:
- main
push:
branches-ignore:
- main
permissions:
contents: read
jobs:
lint:
name: Lint Code Base
name: Lint Codebase
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout
id: checkout
@ -27,14 +23,14 @@ jobs:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: install
run: npm ci
- name: Lint Code Base
- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v5
env:
@ -42,4 +38,5 @@ jobs:
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVASCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JSCPD: false