Created
June 3, 2021 05:09
-
-
Save azu/91a021674a7c44f27d8b20568e7b447b to your computer and use it in GitHub Desktop.
secretlint `git diff` on Pull Request
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: 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