-
Notifications
You must be signed in to change notification settings - Fork 0
Dse/track dependencies prod 14602 #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new GitHub Actions workflow to track project dependencies by generating and uploading Software Bill of Materials (SBOM) to a dependency tracking system. The workflow is configured to run on pushes to main and release branches, as well as manual dispatch.
- Added automated dependency tracking workflow using CycloneDX format
- Configured workflow to trigger on main/release branch pushes and manual dispatch
- Integrated with DependencyTrack for SBOM upload and monitoring
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
- name: Generate SBOM | ||
run: yarn dlx -q @cyclonedx/yarn-plugin-cyclonedx -o sbom.json | ||
- name: Upload CycloneDx bom to dependency track | ||
uses: DependencyTrack/gh-upload-sbom@v3 |
Copilot
AI
Aug 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a mutable tag (@V3) for the action reference poses security risks as the tag can be moved to point to different code. Consider pinning to a specific commit SHA or using an immutable tag for better security and reproducibility.
uses: DependencyTrack/gh-upload-sbom@v3 | |
uses: DependencyTrack/gh-upload-sbom@e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2 |
Copilot uses AI. Check for mistakes.
with: | ||
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }} | ||
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }} | ||
project: 'c9e26ece-6f0c-4834-94c3-a20efd1d7fb7' |
Copilot
AI
Aug 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project UUID is hardcoded in the workflow file. Consider moving this to a repository secret or environment variable to avoid exposing internal project identifiers and improve configuration flexibility across environments.
project: 'c9e26ece-6f0c-4834-94c3-a20efd1d7fb7' | |
project: ${{ secrets.DEPENDENCY_TRACK_PROJECT_UUID }} |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
20dd4aa
to
0bf3825
Compare
No description provided.