reviewdog/Run tfsec with reviewdog

🐶 Run tfsec with reviewdog on pull requests to enforce security best practices

View on GitHub

Trust Signals

Scorecard Score
Scorecard 4–6scored Jul 6, 2026
Maintenance Recency
Activelast commit Jul 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: reviewdog/action-tfsec@a2f2edbf61c6bb22849de705d304b9d2af5f69cd # v1.30.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenGITHUB_TOKENyes${{ github.token }}
working_directoryDirectory to run the action on, from the repo root. Default is . ( root of the repository) no.
levelReport level for reviewdog [info,warning,error]noerror
tool_nameThe name for the report as it will show up in GitHub's interface. Default is tfsec. notfsec
reporterReporter of reviewdog command [github-pr-check,github-pr-review]. Default is github-pr-check. nogithub-pr-check
filter_modeFiltering for the reviewdog command [added,diff_context,file,nofilter]. Default is added. noadded
fail_on_errorExit code for reviewdog when errors are found [true,false] Default is `false`. nofalse
flagsAdditional reviewdog flagsno""
tfsec_versionThe version of tfsec to install. Default is latest. nolatest
tfsec_flagsList of arguments to send to tfsec For the output to be parsable by reviewdog --format=checkstyle is enforced Default is blank. no""
namedescription
tfsec-return-codetfsec command return code
reviewdog-return-codereviewdog command return code