Skip to content

Update dependency @secretlint/secretlint-rule-preset-recommend to v8 #85

Update dependency @secretlint/secretlint-rule-preset-recommend to v8

Update dependency @secretlint/secretlint-rule-preset-recommend to v8 #85

name: Secretlint via Docker only on changed files
on: [push, pull_request]
# secretlint + git diff on Pull Request
# https://github.com/secretlint/secretlint
jobs:
run-secretlint-via-docker:
name: "Secretlint via Docker only on changed files"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
- name: Run secretlint command on docker
uses: addnab/docker-run-action@v3
with:
# https://hub.docker.com/r/secretlint/secretlint/tags
image: secretlint/secretlint:v5.1.1
# https://github.com/secretlint/secretlint#using-docker
options: >
-v ${{ github.workspace }}:${{ github.workspace }}
-w=${{ github.workspace }}
--rm
run: secretlint ${{ env.GIT_DIFF_FILTERED }} # run only on changed files
# run on all files under github.workspace directory
#run: secretlint "**/*"