-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add secretlint #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
af23e36
init secretlint with default settings
niklashaug 918c0b1
add secretlint to lint-staged config
niklashaug e150365
add secretlint workflow
niklashaug b136132
Apply suggestion from @Copilot
niklashaug cd02058
test: add fake GitHub token to trigger secretlint workflow
niklashaug 66d893e
Merge remote-tracking branch 'origin/add-secretlint' into add-secretlint
niklashaug 4d3cefb
Revert "test: add fake GitHub token to trigger secretlint workflow"
niklashaug 010167c
Merge remote-tracking branch 'origin/main' into add-secretlint
jhnns 117c09c
Merge remote-tracking branch 'origin/main' into add-secretlint
jhnns e9239fe
Refactor lint-secrets action
jhnns a70f7f0
Fix docker version mismatch
jhnns 71507b9
test: add secretlint trigger fixture
jhnns c5eabfb
test: adjust secretlint trigger
jhnns 10a8e18
test: add secretlint trigger fixture
jhnns 65281ea
Finalize
jhnns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Secretlint | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| name: "Secretlint" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 📥 Checkout repository | ||
| uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # main | ||
|
|
||
| - name: 🟢 Setup Node.js | ||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # main | ||
| with: | ||
| node-version-file: ".tool-versions" | ||
| cache: "npm" | ||
|
|
||
| - name: 🗄 Cache node_modules | ||
| id: cache-node_modules | ||
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main | ||
| with: | ||
| path: "**/node_modules" | ||
| key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
|
||
| - name: 🗄 Cache .eslintcache | ||
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main | ||
| with: | ||
| path: .eslintcache | ||
| key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
|
||
| - name: 🔍 Install dependencies | ||
|
jhnns marked this conversation as resolved.
Outdated
|
||
| if: steps.cache-node_modules.outputs.cache-hit != 'true' | ||
| run: | | ||
| npm ci --ignore-scripts --prefer-offline --no-audit | ||
|
jhnns marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Lint with Secretlint | ||
| run: npx secretlint --format github "**/*" | ||
|
jhnns marked this conversation as resolved.
Outdated
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "rules": [ | ||
| { | ||
| "id": "@secretlint/secretlint-rule-preset-recommend" | ||
| } | ||
| ] | ||
| } |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.