lejouni/Application Security Analsysis tools

This action will use other security scanning tools to do different type of security scannings.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 26, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: lejouni/appsec-scan@a374bd6c40091b851dbe606b2ba97ce5cebdb182 # no releases — HEAD as of 2026-07-11

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

namedescriptionrequireddefault
log_levelLogging level. Default is INFO.noINFO
cacheTools can be cached by setting this to true. Default is true.notrue
build_commandApplication build command. Ex. mvn clean installno
github_tokenPass the GitHub token to the script in order to create PRsno
bridge_install_folderInstall folder for Bridge componentno/tmp/bridge-cli-bundle
bridge_platformBridge platform linux is default. Options are linux64, win64 and macosxnolinux64
bridge_versionBridge component versionno3.11.0
polaris_projectProject name, if not given then default=github.repositoryno${{github.repository}}
polaris_branchProject branch name, if not given then default=github.ref_nameno${{github.ref_name}}
polaris_urlURL for Polaris where the thin client can be downloadedyes
polaris_tokenPolaris Access Tokenyes
polaris_config_overridesWith this you can overriding the configuration file. More info: https://documentation.blackduck.com/bundle/coverity-on-polaris/page/topics/c_cli-config-overrides.htmlno--co analyze.coverity.cov-analyze='["--enable", "HARDCODED_CREDENTIALS", "--security", "--webapp-security", "--android-security"]'
polaris_analysis_modeAnalysis mode will tell the action that is local or central analysis requested, Options are local and central (Default).nocentral
polaris_config_fileBy giving this input, you specify which polaris.yaml file to use. If this is given, then only configurations given inside of the config file, will be used. If not given then will set polaris server url with flag -sno
polaris_sarifBy setting this true, you will get results output as a sarif format file. Default is false.nofalse
polaris_sarif_fileIf polaris_sarif: true, then this is used, to specify the output file with full path. Default: github.workspace/polaris-scan-results.sarif.jsonno${{github.workspace}}/polaris-scan-results.sarif.json
polaris_issue_statusIndicates which issues are returned based on the status, if not given, then all are returned. Options are opened,closed.no
polaris_install_folderTo which folder the tools are extracted. Default is /tmp/cache/polarisno/tmp/cache/polaris
polaris_platformWhat platform of Polaris thin client is needed, example: linux64 (Default). Fow Windows win64 and for MacOS macosxnolinux64
polaris_versionWhat version of Polaris thin client is needed, example: 2025.6.0 (Default)no2025.6.0
polaris_nextgen_applicationApplication nameno
polaris_nextgen_projectProject name, if not given then default=github.repositoryno${{github.event.repository.name}}
polaris_nextgen_branchProject branch name, if not given then default=github.ref_nameno${{github.branch.name}}
polaris_nextgen_urlURL for Polaris where the thin client can be downloadedyes
polaris_nextgen_tokenPolaris Access Tokenyes
polaris_nextgen_sarifBy setting this true, you will get results output as a sarif format file. Default is false.nofalse
polaris_nextgen_sarif_fileIf polaris_sarif: true, then this is used, to specify the output file with full path. Default: github.workspace/polaris-scan-results.sarif.jsonno${{github.workspace}}/polaris-scan-results.sarif.json
blackduck_urlURL for Black Duck where the thin client can be downloadedyes
blackduck_tokenBlack Duck Access Tokenyes
blackduck_projectProject name in Black Duck, if not given then default=github.repositoryno${{github.repository}}
blackduck_versionProject version name in Black Duck. Defaul is github.ref_nameno${{github.ref_name}}
blackduck_detect_optsAdditional detect options. Comma separated list.nodetect.tools="ALL"
blackduck_policy_categoriesWhich policy category vulnerabilites are returned. SECURITY,LICENSE is default.noSECURITY,LICENSE
blackduck_sarifBy setting this true, you will get results output as a sarif format file. Default is false.nofalse
blackduck_full_scanSetting this to true, black duck full scan is executed, otherwise if blackduck is true, then RAPID -scan is done.nofalse
blackduck_policiesIf given, policy information is addednofalse
blackduck_iacIf given, iac findings are addednofalse
blackduck_rapid_compare_modeALL - The default and existing Rapid Scan mode. The output is the same as before, no BOM comparisons are done. BOM_COMPARE_STRICT - If the policy violation was already known and visible in the project version's component page (active or overridden), it will not be in the Rapid Scan results. Only new violations found in the scanned project and cleared violations are returned. Only policy rules that are relevant to Rapid Scans and project version BOMs will be evaluated (those with Rapid and Full scan modes selected). BOM_COMPARE - Evaluates all policy rules that 'ALL' mode does but will apply the 'BOM_COMPARE_STRICT' logic to relevant policy rules (those with Rapid and Full scan modes selected).noALL
blackduck_fixpr_enabledEnables or disables Fix PRs creation for Black Duck. When set to true, a fix PR is created for each vulnerable direct dependency. Default is false.nofalse
blackduck_fixpr_maxCountSets the maximum number of fix pull requests that can be created on a branch. Accepts integer valuesno
blackduck_fixpr_filter_severitiesCreates Fix PRs only for issues with the severity level specified. The value is a comma-separated list. Supported severities are CRITICAL, HIGH, MEDIUM, LOWno
blackduck_fixpr_useUpgradeGuidanceAllows the user to specify short-term or long-term upgrade guidance, or both. If both values are provided, the first takes priority, and the second value is used only if the first returns no results. If upgrade guidance is not available, the fix PR is not created.noSHORT_TERM, LONG_TERM
blackduck_prComment_enabledOption to enable pull request comments for new issues found in the pull request. Baseline full scan results must exist on the server for this feature to worknofalse
blackduck_scan_failure_severitiesBlack Duck scan failure severities. Accepted severities are ALL, NONE, BLOCKER, CRITICAL, MAJOR, MINOR, OK, TRIVIAL, UNSPECIFIED. Default "NONE"noNONE
blackduck_toolname_for_sarif_fullGiven name is used for sarif tool name for Black Duck full scan results. Default is Black Duck IntelligentnoBlackDuck SCA Intelligent
blackduck_toolname_for_sarif_rapidGiven name is used for sarif tool name for Black Duck rapid scan results. Default is Black Duck IntelligentnoBlackDuck SCA Rapid
coverity_urlURL for coverity.yes
coverity_usernameCoverity Connect usernameyes
coverity_passphareCoverity Connect passwordyes
coverity_projectProject name, if not given then default=github.repositoryno${{github.repository}}
coverity_streamProject stream name, if not given then default=github.ref_nameno${{github.ref_name}}
coverity_repository_nameProject repository nameno
coverity_branche_nameProject branch nameno
coverity_sarifProject branch namenofalse
coverity_localSet to false if you are using Coverity cloud deploymentnofalse
coverity_tool_nameTool name for SarifnoCoverity
coverity_sarif_fileIf coverity_sarif: true, then this is used, to specify the output file with full path. Default: github.workspace/coverity-scan-results.sarif.jsonno${{github.workspace}}/coverity-scan-results.sarif.json
polarisIf this is true, then Polaris analysis is done. Default is false.nofalse
polaris_nextgenIf this is true, then Nextgen Polaris analysis is done. Default is false.nofalse
blackduckIf this is true, then Black Duck analysis is done. Default is false.nofalse
coverityIf this is true, then Cloud Native Coverity (coverity) analysis is done. Default is false.nofalse

no outputs