targetfilePath
File, directory, or checked-out repository path to scan.
- Required
- true
- Default
$(Build.SourcesDirectory)
This page is generated from azure-devops/tasks/PicketScanV1/task.json.
Task name: PicketScan
Version: 1.0.5
targetfilePath
File, directory, or checked-out repository path to scan.
$(Build.SourcesDirectory)picketPathstring
Path to the Picket executable or command name available on PATH.
picketconfigfilePath
Optional configuration path. A custom config replaces Picket's embedded native default rules; extend.useDefault restores only the Gitleaks defaults.
profilepickList
Scan profile. Use gitleaks only when strict compatibility behavior is desired.
picketrulePacksstring
Optional comma-separated built-in rule packs: picket-strict and picket-experimental.
reportFormatsstring
Comma-separated report formats: json, jsonl, sarif, html, csv, junit, gitlab, toon. JSONL is added internally when omitted so task outputs and annotations stay accurate.
sarif,jsonl,htmlreportDirectoryfilePath
Directory where task reports are written.
$(Build.ArtifactStagingDirectory)/picketfailOnpickList
Task failure policy. Scanner execution errors always fail the task; never only suppresses finding-based failure.
findingsbaselinePathfilePath
Optional baseline report used to suppress known findings.
ignorePathfilePath
Optional .picketignore path containing native stable finding fingerprints or content hashes.
resultsstring
Optional comma-separated validation states to keep before reports and failure enforcement.
onlyVerifiedboolean
Keep only offline structurally valid findings and live active findings.
falseredactstring
Redaction percentage from 0 through 100.
100verifyboolean
Enable opt-in live provider verification.
falseannotationsboolean
Emit safe Azure DevOps log issues for findings with source locations.
trueannotationLimitstring
Maximum number of log issues emitted by the task. Use 0 to disable annotation output.
50publishSarifboolean
Publish the SARIF report as a build artifact when it exists.
truepublishJsonlboolean
Publish the native JSONL report as a build artifact when it exists.
truepublishHtmlboolean
Publish the HTML report as a build artifact when it exists.
truecacheboolean
Pass a native Picket scan cache directory to the CLI.
truecacheModepickList
Cache storage mode. Use raw only in trusted private jobs.
secret-hash-onlycachePathfilePath
Cache directory passed to the CLI.
$(Pipeline.Workspace)/.picket/cachemaxTargetMegabytesstring
Optional positive maximum file size in decimal MB for content rules.
maxArchiveDepthstring
Optional maximum nested archive traversal depth.
maxArchiveEntriesstring
Optional maximum number of files extracted from archives.
maxArchiveMegabytesstring
Optional maximum decompressed archive payload in decimal MB.
maxArchiveRatiostring
Optional maximum archive expansion ratio.
timeoutstring
Optional scan timeout in seconds. Use 0 to disable.
azureDevOpsOrganizationstring
Optional organization name or URL for remote Azure DevOps enumeration.
azureDevOpsEndpointstring
Optional endpoint override for Azure DevOps Server.
azureDevOpsTokenEnvstring
Environment variable containing the PAT or job token. The token value is not passed on the command line.
azureDevOpsTokenKindpickList
Credential transport: pat for personal access tokens or bearer for job and Entra tokens.
patazureDevOpsProjectstring
Optional project filter.
azureDevOpsRepositorystring
Optional repository filter.
azureDevOpsBranchstring
Optional branch name.
azureDevOpsPullRequeststring
Optional pull request ID to scan.
azureDevOpsIncludeWikisboolean
Include Azure DevOps wiki backing repositories.
falseazureDevOpsBuildIdstring
Build ID used when scanning build artifacts or build logs.
azureDevOpsIncludeArtifactsboolean
Include build artifact contents for the selected build.
falseazureDevOpsIncludeLogsboolean
Include build logs for the selected build.
falseazureDevOpsReleaseIdstring
Classic release ID used when scanning release build artifacts.
azureDevOpsIncludeReleaseArtifactsboolean
Include build artifact contents referenced by the selected classic release.
falseazureDevOpsIncludePackagesboolean
Include the latest NuGet package versions from readable Azure Artifacts feeds.
falseazureDevOpsFeedstring
Optional feed name or ID filter.
azureDevOpsPackagestring
Optional exact NuGet package name filter.
azureDevOpsPackageVersionstring
Optional exact NuGet package version. Requires an exact package name.
azureDevOpsMaxArtifactMegabytesstring
Positive per-artifact archive download cap.
azureDevOpsMaxLogMegabytesstring
Positive per-log download cap.
azureDevOpsMaxPackageMegabytesstring
Positive per-package archive download cap. Requires Azure Artifacts package scanning.
allowNonPublicSourceEndpointsboolean
Permit private, loopback, link-local, or otherwise non-public endpoint addresses.
falseallowInsecureSourceEndpointsboolean
Permit HTTP source endpoints for trusted local tests or explicitly accepted self-hosted environments.
falseextraArgsmultiLine
Additional CLI arguments appended after validated task inputs, one argument per line.
exitCodeOutput
Raw scanner exit code before task failure enforcement.
findingsOutput
Number of emitted native JSONL finding records after filters.
sarifPathOutput
Absolute path to the SARIF report when enabled.
jsonlPathOutput
Absolute path to the JSONL report when enabled.
htmlPathOutput
Absolute path to the HTML report when enabled.
annotationsOutput
Number of Azure DevOps log issues emitted.