-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add trivy 0.45.1 Signed-off-by: Damien Duportal <[email protected]> * fixup: correct trivy installation as it is an archive on linux Signed-off-by: Damien Duportal <[email protected]> * fixup: add a breakpoint packer provisionner to allow local debugging when needed Signed-off-by: Damien Duportal <[email protected]> * Update build-jenkins-agent-ubuntu.pkr.hcl Co-authored-by: Tim Jacomb <[email protected]> --------- Signed-off-by: Damien Duportal <[email protected]> Co-authored-by: Tim Jacomb <[email protected]>
- Loading branch information
Showing
6 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
name: Bump the `trivy` CLI version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastReleaseVersion: | ||
kind: githubrelease | ||
name: Get the latest `trivy` CLI version | ||
spec: | ||
owner: aquasecurity | ||
repository: trivy | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: semver | ||
transformers: | ||
- trimprefix: v | ||
|
||
conditions: | ||
checkForChocolateyPackage: | ||
kind: shell | ||
disablesourceinput: true # Do not pass source as argument to the command line | ||
spec: | ||
command: curl https://community.chocolatey.org/packages/trivy/{{ source "lastReleaseVersion" }} --silent --show-error --location --fail --output /dev/null | ||
|
||
targets: | ||
updateVersion: | ||
name: Update the `trivy` CLI version in the provision-env.yml file | ||
sourceid: lastReleaseVersion | ||
kind: yaml | ||
spec: | ||
file: provisioning/tools-versions.yml | ||
key: $.trivy_version | ||
scmid: default | ||
updateTest: | ||
name: Update the `trivy` CLI version in the test harness | ||
sourceid: lastReleaseVersion | ||
kind: yaml | ||
spec: | ||
file: goss/goss.yaml | ||
key: $.command.trivy.stdout[0] | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
title: Bump the `trivy` CLI version to {{ source "lastReleaseVersion" }} | ||
spec: | ||
labels: | ||
- enhancement | ||
- trivy |