Code Issues Pull Requests Actions Packages Projects Releases 15 Wiki Activity Security Code Quality

ci: Refactor release and scan-vulnerabilities workflows to utilize shared environment loading action for improved security and clarity

This commit is contained in:
tienbh committed 2026-11-25 14:30:09 +07:00 Verified
1 parent b4bdde9180
commit 5cc756db7a
2 files changed
+26 -27

No files matched your search

@@ -22,16 +22,9 @@ jobs:
upload-artifact: false
- name: Read API key from the runner
run: |
if [[ -z "${DT_API_KEY:-}" ]]; then
echo "DT_API_KEY is not set on this runner"
exit 1
fi
{
echo "DT_API_KEY<<__DT_API_KEY__"
printf '%s\n' "$DT_API_KEY"
echo "__DT_API_KEY__"
} >> "$GITHUB_ENV"
uses: https://git.sothink.vn/gitea/global-workflow/.gitea/actions/load-env@main
with:
names: DT_API_KEY
- name: Upload SBOM to Dependency-Track
uses: DependencyTrack/gh-upload-sbom@v4