Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/blackduck_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Blackduck Scan
on:
workflow_dispatch:
inputs:
project_version:
description: Black Duck compliance check for version
default:
required: true
type: string

jobs:
oss-compliance:
name: OSS Compliance scan
runs-on: staging-2c-8gb
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.project_version }}

- name: Setup Python v3.7
uses: actions/setup-python@v3
with:
python-version: '3.7'

- name: Setup JDK8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8

- name: Get project node version
run: echo ::set-output name=NODE_VERSION::$(cat .node-version)
id: node

- name: Install node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node.outputs.NODE_VERSION }}

- name: Scan with Black Duck Tools
uses: tomtom-internal/blackduck-action@v0
env:
BLACKDUCK_API_TOKEN: ${{ secrets.BLACKDUCK_TOKEN }}
with:
name: react-native-sound
version: ${{ inputs.project_version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.13.2
14 changes: 14 additions & 0 deletions bdtools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project: react-native-sound
scan_type:
- FULL_SCAN
include_folders:
- android
- RNSound
- scripts
exclude_folders:
- windows
detectors_included:
- NPM
- GIT
passthrough:
- --detect.npm.dependency.types.excluded=DEV