Skip to content

Commit f60fa78

Browse files
chore: replace Black Duck scan workflow with a trigger workflow (#1385)
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Change the current repo-based workflow to a reusable workflow trigger. --------- Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
1 parent 993bb63 commit f60fa78

2 files changed

Lines changed: 24 additions & 51 deletions

File tree

.github/workflows/blackduck_scan.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Trigger central Black Duck scan workflow for the Open Component Model project.
2+
name: Trigger Blackduck Scan
3+
on:
4+
push:
5+
paths-ignore:
6+
- '.github/workflows/**'
7+
branches: [ "main" ]
8+
pull_request_target:
9+
paths-ignore:
10+
- '.github/workflows/**'
11+
branches: [ "main" ]
12+
schedule:
13+
- cron: '25 0 * * 0'
14+
workflow_dispatch:
15+
16+
jobs:
17+
trigger-scan:
18+
uses: open-component-model/.github/.github/workflows/blackduck-scan.yaml@47e68e42a6d78125d519e6e008c2b203385a0a72
19+
with:
20+
# required to be able to differentiate between PRs and pushes in the called workflow (rapid or full scan)
21+
event_type: ${{ github.event_name }}
22+
secrets: inherit
23+
permissions:
24+
contents: read

0 commit comments

Comments
 (0)