Last active
May 13, 2021 08:46
-
-
Save ybiquitous/85cc968a22292e05f13c69a8fba1f50e to your computer and use it in GitHub Desktop.
Secretlint out of the box via GitHub Actions
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
# 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' }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a file:
.github/workflows/secretlint.yml
See also: https://github.com/secretlint/secretlint