This action is in development and not ready for production use.
A GitHub action that will create a policy within a specified Black Duck instance
- blackduck-url: string
- blackduck-api-token: string
- no-fail-if-policy-exists: boolean
- policy-name: string
- policy-description: string
- max-critical: number
- max-high: number
- max-medium: number
- max-low: number
Currently, importing certificates is only supported on self-hosted runners. To include a trusted certificate, set the environment variable NODE_EXTRA_CA_CERTS
to the path to the certificate (in pem format).
Note: Ensure spaces in the file-path are properly escaped or the certificate may not be properly imported.
jobs:
create-policy:
runs-on: self-hosted
steps:
- name: Create Black Duck Policy
env:
NODE_EXTRA_CA_CERTS: ${{ secrets.LOCAL_CA_CERT_PATH }}
uses: blackducksoftware/create-policy-action@main
with:
blackduck-url: ${{ secrets.TEST_BLACKDUCK_URL }}
blackduck-api-token: ${{ secrets.TEST_BLACKDUCK_API_TOKEN }}