diff --git a/.github/workflows/secretlint.yml b/.github/workflows/secretlint.yml new file mode 100644 index 0000000..c2e6d63 --- /dev/null +++ b/.github/workflows/secretlint.yml @@ -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 "**/*" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..8763ad9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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