🚨 :octocat: A GitHub action to check and report secret leaks in the repository using Infisical CLI.
The following example workflow step will scan for secrets leak, add a comment to the pull request and output the quantity of secrets leaked.
- name: Run the action
uses: guibranco/github-infisical-secrets-check-action@latest
id: secrets-scan
gh_token
: The GitHub token to add the comment in the PR using the mshick/add-pr-comment@v2 GitHub Action.secrets-leaked
: The number of secrets leaked found by the Infisical CLI tool.name: 'Infisical secrets check'
on:
pull_request:
jobs:
check-secrets:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run the action
uses: guibranco/github-infisical-secrets-check-action@latest
name: 'Infisical secrets check'
on:
pull_request:
jobs:
check-secrets:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run the action
uses: guibranco/github-infisical-secrets-check-action@latest
with:
gh_token: $
Remember to add the repository secret GH_TOKEN
.