# create-policy-action **Repository Path**: mirrors_blackducksoftware/create-policy-action ## Basic Information - **Project Name**: create-policy-action - **Description**: A GitHub Action for creating a Black Duck policy - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-12 - **Last Updated**: 2025-12-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WIP This action is in development and not ready for production use. # Create Black Duck Policy Action A GitHub action that will create a policy within a specified Black Duck instance # Parameters ## Required - blackduck-url: string - blackduck-api-token: string ## Optional - no-fail-if-policy-exists: boolean - policy-name: string - policy-description: string - max-critical: number - max-high: number - max-medium: number - max-low: number # Troubleshooting ## Certificates 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. ### Example ```yaml 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 }} ```