ci: Refactor release and scan-vulnerabilities workflows to utilize shared environment loading action for improved security and clarity
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user