https://github.com/juli1/tdb-github-action
A GitHub action for TDB analysis
https://github.com/juli1/tdb-github-action
Last synced: 9 months ago
JSON representation
A GitHub action for TDB analysis
- Host: GitHub
- URL: https://github.com/juli1/tdb-github-action
- Owner: juli1
- Created: 2023-08-29T19:30:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T20:58:58.000Z (over 2 years ago)
- Last Synced: 2025-02-12T23:43:28.615Z (11 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datadog-sca-github-action
**WARNING**: This work is under development and not ready for any production use.
The `datadog-sca-github-action` is a GitHub Action to generate SBOM and upload them to Datadog.
## SBOM Generation
The GitHub action generates the SBOM automatically based on
dependencies declared in your repository.
The GitHub Action works for the following languages and following files:
- JavaScript/Typescript: `package-lock.json` and `yarn.lock`
- Python: `requirements.txt` (with version defined) and `poetry.lock`
## Setup
### Set up keys
Add `DD_APP_KEY` and `DD_API_KEY` in your GitHub actions secrets.
### Workflow
Add the following code snippet in `.github/workflows/datadog-sca.yml`.
```yaml
on:
push:
branches:
- main
jobs:
check-quality:
runs-on: ubuntu-latest
name: Datadog SBOM Generation and Upload
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate SBOM and Upload
id: tdb-tests
uses: juli1/tdb-github-action@main
with:
dd_api_key: ${{ secrets.DD_API_KEY }}
dd_app_key: ${{ secrets.DD_APP_KEY }}
dd_service:
dd_env:
dd_site:
```