https://github.com/blackducksoftware/create-policy-action
A GitHub Action for creating a Black Duck policy
https://github.com/blackducksoftware/create-policy-action
Last synced: 18 days ago
JSON representation
A GitHub Action for creating a Black Duck policy
- Host: GitHub
- URL: https://github.com/blackducksoftware/create-policy-action
- Owner: blackducksoftware
- License: apache-2.0
- Created: 2021-11-10T18:28:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T08:00:53.000Z (about 2 years ago)
- Last Synced: 2025-03-24T10:45:37.782Z (about 1 month ago)
- Language: TypeScript
- Size: 471 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
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 }}
```