Skip to content

Instantly share code, notes, and snippets.

@ybiquitous
Last active May 13, 2021
Embed
What would you like to do?
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

ybiquitous commented May 13, 2021

Annotation example:
image

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