Skip to content

Update secretlint monorepo to ^8.2.1 #102

Update secretlint monorepo to ^8.2.1

Update secretlint monorepo to ^8.2.1 #102

name: Secretlint via Node.js only on changed files
on: [push, pull_request]
# secretlint + git diff on Pull Request
# https://github.com/secretlint/secretlint
jobs:
run-secretlint:
name: "Secretlint only on changed files"
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install
run: npm install
- name: Lint with Secretlint
run: npx --no-install secretlint ${{ env.GIT_DIFF_FILTERED }}
if: env.GIT_DIFF && !env.MATCHED_FILES