Skip to content

Commit

Permalink
Add audit-dependencies to pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
svenaas committed May 7, 2024
1 parent c81e38f commit 7b3cc6d
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,65 @@ jobs:
username: ((slack-username))
icon_url: ((slack-icon-url))

- name: audit-dependencies
plan:
- get: src
resource: pr-((git-branch))
trigger: true
passed: [set-pipeline]

- put: src
resource: pr-((git-branch))
params:
path: src
status: pending
base_context: concourse
context: audit-dependencies

- task: pip-audit
config:
<<: *python-image
inputs: [name: src]
outputs: [name: src]
run:
dir: src
path: ci/tasks/pip-audit.sh

on_failure:
in_parallel:
- put: src
resource: pr-((git-branch))
params:
path: src
status: failure
base_context: concourse
context: audit-dependencies
- put: slack
params:
text: |
:x: FAILED: pages build container dependency audit on ((git-branch))
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME?vars.deploy-env="((deploy-env))"&vars.git-branch="((git-branch))"|View build details>
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))

on_success:
in_parallel:
- put: src
resource: pr-((git-branch))
params:
path: src
status: success
base_context: concourse
context: audit-dependencies
- put: slack
params:
text: |
:white_check_mark: SUCCESS: Successfully passed pages build container dependency audit on ((git-branch))
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))

############################
# RESOURCES

Expand Down

0 comments on commit 7b3cc6d

Please sign in to comment.