Skip to content

Instantly share code, notes, and snippets.

@ybiquitous
Last active May 13, 2021 08:46
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybiquitous/85cc968a22292e05f13c69a8fba1f50e to your computer and use it in GitHub Desktop.
Save ybiquitous/85cc968a22292e05f13c69a8fba1f50e to your computer and use it in GitHub Desktop.
Secretlint out of the box via GitHub Actions
# https://github.com/secretlint/secretlint
name: secretlint
on:
push:
branches: ['main']
pull_request:
branches: ['**']
jobs:
secretlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Set up ignored files
run: |
cat <<'EOF' > .secretlintignore
spec/
test/
EOF
- name: Run secretlint
run: npx @secretlint/quick-start '**/*'
# Looser option
# ontinue-on-error: ${{ github.event_name == 'pull_request' }}
@ybiquitous
Copy link
Author

ybiquitous commented Apr 9, 2020

Create a file: .github/workflows/secretlint.yml

See also: https://github.com/secretlint/secretlint

@ybiquitous
Copy link
Author

Annotation example:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment