elementsinteractive/Twyn action

Security tool against dependency typosquatting attacks

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Nov 11, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: elementsinteractive/twyn-action@a2fcaefde71babfec476491163da2e7b97a7d29a # v1.0.0

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

namedescriptionrequireddefault
github-tokenToken needed to publish results to the PR.no
configPath to the config fileno
dependency-fileDependency file(s) to analyze. Comma-separated if multiple. By default, twyn will search in the current directory for supported files, but this option will override that behavior.no
selector-methodWhich method twyn should use to select possible typosquats. 'first-letter' only compares dependencies that share the first letter, 'nearby-letter' compares against dependencies whose first letter is nearby in an English keyboard. 'all' compares the given dependencies against all of those in the reference.no
no-trackDo not show the progress bar while processing packagesnofalse
jsonDisplay the results in json format. It implies no-track. Mutually exclusive with --table.nofalse
tableDisplay the results in a table format. It implies no-track. Mutually exclusive with --json.nofalse
recursiveRecursively look for files when trying to locate them automatically. Ignored if dependency-file is given.nofalse
pypi-sourceAlternative PyPI source URL to use for fetching trusted packagesno
npm-sourceAlternative npm source URL to use for fetching trusted packagesno
vEnable verbose output (-v)nofalse
vvEnable extra verbose output (-vv)nofalse
versionTwyn version (latest, v1.0.0, etc.)nolatest
publishWhether to publish the twyn results as PR comments (requires table format)nofalse
namedescription
resultsRaw output from twyn scan
exit-codeExit code from twyn scan