Skip to content

Commit

Permalink
feat: add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Dec 3, 2023
1 parent f6a9a6a commit d70c6d0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/secretlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Secretlint
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: "Secretlint"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: npm install
- name: Lint with Secretlint
run: npx secretlint "**/*"
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
# - repo: https://github.com/streetsidesoftware/cspell-cli
# rev: v8.0.0
# hooks:
# - id: cspell

- repo: local
hooks:
- id: secretlint
name: secretlint
language: docker_image
entry: secretlint/secretlint:latest secretlint

0 comments on commit d70c6d0

Please sign in to comment.