-
Notifications
You must be signed in to change notification settings - Fork 30
39 lines (35 loc) · 981 Bytes
/
Copy pathblackduck.yaml
File metadata and controls
39 lines (35 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Blackduck Scan'
on:
workflow_dispatch:
schedule:
- cron: 0 23 * * *
permissions: {}
jobs:
scan:
name: "Blackduck Scan"
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- name: "Scan With Black Duck"
uses: ./.github/actions/scan-with-blackduck
with:
token: ${{ secrets.BLACKDUCK_TOKEN }}
notify-job:
runs-on: ubuntu-latest
permissions:
contents: read
needs: [ scan ]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Notify
run: python .pipeline/scripts/notify.py
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
WORKFLOW: ${{ github.workflow }}
WORKFLOW_RUN_URL: https://github.com/SAP/cloud-sdk-java/actions/runs/${{ github.run_id }}
BRANCH_NAME: ${{ github.ref_name }}