Skip to content

Add rescan option to JFrogBuildScan task #893

Description

@ashokm

The JFrogBuildScan@1 task does not currently expose JFrog CLI's --rescan option.

This would be useful when a build has already been successfully scanned and needs to be scanned again, for example after an Xray ignore rule has been added or changed.

It is also relevant for pipelines where the build is scanned during CI but deployment takes place significantly later. In that case, teams may want to explicitly rescan the same build as part of the deployment process rather than rely solely on the earlier scan result.

Could a rescan boolean input/checkbox be added to the task, defaulting to false?

For example:

- task: JFrogBuildScan@1
  inputs:
    xrayConnection: 'jfrog xray token'
    buildName: '$(Build.DefinitionName)'
    buildNumber: '$(Build.BuildNumber)'
    allowFailBuild: true
    vuln: false
    rescan: true

This would pass the equivalent of --rescan to the underlying jf build-scan command.

A dedicated boolean input seems preferable to a generic arguments field, as --rescan is a specific option of the Build Scan command and can be clearly exposed through both the task UI and YAML.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions