Update actions/setup-node action to v6 #186
This file contains hidden or 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
| 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-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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 "**/*" |