Skip to content

Instantly share code, notes, and snippets.

@azu
Created June 3, 2021 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azu/91a021674a7c44f27d8b20568e7b447b to your computer and use it in GitHub Desktop.
Save azu/91a021674a7c44f27d8b20568e7b447b to your computer and use it in GitHub Desktop.
secretlint `git diff` on Pull Request
name: Secretlint
on: [pull_request]
# secretlint + git diff on Pull Request
# https://github.com/secretlint/secretlint
jobs:
test:
name: "Secretlint"
runs-on: ubuntu-18.04
steps:
- name: checkout
uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
- name: setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment