Runs detect-secrets to detect secrets in the codebase that has already been checked out into the working directory.
Note
This is a fork and partial rewrite of secret-scanner/action. It is only intended to be used from the scan-for-secrets reusable workflow in this repository.
Important
This action will set up Python. It assumes a ubuntu-latest runner.
Example usage:
- uses: UoMResearchIT/actions/secret-scanner@v1.2.7-
additional-argsExtra arguments to pass to the detect-secret binary. Optional.
-
baseline-fileA path to the baseline secrets file. Optional.
Defaults to
.github/secret-scanner/baseline.json -
exclude-pathA path to the directory of files describing things to exclude. Optional.
Defaults to
.github/secret-scannerThe exclusion files in this directory will be called
excluded_files.txt,excluded_lines.txt, andexcluded_secrets.txt. Each non-blank non-comment line in those files is a regex that will be passed as an argument to the--exclude-files,--exclude-filesor--exclude-secretsoptions to the underlying library; consult the documentation there for exactly what they do.
None. Writes to the the summary page if problems are detected.
No permissions required.