Skip to content

Latest commit

 

History

History

README.md

Secret Scanner

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

Inputs

  • additional-args

    Extra arguments to pass to the detect-secret binary. Optional.

  • baseline-file

    A path to the baseline secrets file. Optional.

    Defaults to .github/secret-scanner/baseline.json

  • exclude-path

    A path to the directory of files describing things to exclude. Optional.

    Defaults to .github/secret-scanner

    The exclusion files in this directory will be called excluded_files.txt, excluded_lines.txt, and excluded_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-files or --exclude-secrets options to the underlying library; consult the documentation there for exactly what they do.

Outputs

None. Writes to the the summary page if problems are detected.

Permissions

No permissions required.