Skip to content

Commit

Permalink
Merge pull request #74 from kaakaww/feature/custom-runner-pipeline-se…
Browse files Browse the repository at this point in the history
…ttings

installPath tests
  • Loading branch information
kcberg authored Feb 23, 2024
2 parents b07af0f + 6223b9b commit 46ed6ad
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ steps:
# install the latest version of hawkscan
- task: HawkScanInstall@1
inputs:
version: "3.5.28"
version: "3.7.0"
installerType: "$(installerType)"
condition: not(and(eq(variables['installerType'], 'auto'), eq(variables['imageName'], 'ubuntu-latest')))

- task: HawkScanInstall@1
inputs:
version: "3.7.0"
installerType: "$(installerType)"
installPath: '/home/vsts/custom'
condition: and(eq(variables['installerType'], 'auto'), eq(variables['imageName'], 'ubuntu-latest'))

# azure pipelines default jdk is 8, so we upgrade to 11 to run JavaSpringVulny
# the hawkscan msi bundles java with it, so this step isn't necesarry for running HawkScan
Expand Down Expand Up @@ -69,9 +77,22 @@ steps:
- task: RunHawkScan@1
inputs:
configFile: "stackhawk.yml"
version: "3.5.28"
version: "3.7.0"
env:
HAWK_API_KEY: $(HAWK_API_KEY) # use variables in the azure devops ui to configure secrets and env vars
APP_ENV: $(imageName)
APP_ID: $(appId2)
SARIF_ARTIFACT: true
condition: not(and(eq(variables['installerType'], 'auto'), eq(variables['imageName'], 'ubuntu-latest')))

- task: RunHawkScan@1
inputs:
configFile: "stackhawk.yml"
version: "3.7.0"
installPath: '/home/vsts/custom'
env:
HAWK_API_KEY: $(HAWK_API_KEY) # use variables in the azure devops ui to configure secrets and env vars
APP_ENV: $(imageName)
APP_ID: $(appId2)
SARIF_ARTIFACT: true
condition: and(eq(variables['installerType'], 'auto'), eq(variables['imageName'], 'ubuntu-latest'))

0 comments on commit 46ed6ad

Please sign in to comment.