Skip to content

Commit 801e560

Browse files
thlehmann-ionosprintminion-co
authored andcommitted
[WIP] Use GitHub expressions, not env vars
D'oh
1 parent c4035c2 commit 801e560

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sbom.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@ jobs:
130130
run: |
131131
wc --total=never -l bom.*.xml
132132
133-
echo "Upload to: ${DEPENDENCY_TRACK_BASE_URL}/api/v1/bom"
133+
echo "Upload to: ${{ vars.DEPENDENCY_TRACK_BASE_URL }}/api/v1/bom"
134134
135135
upload_bom() {
136136
echo "Upload Nextcloud SBOM ${1} for object ${2} ..."
137137
138138
curl \
139139
-D- \
140-
-X POST "${DEPENDENCY_TRACK_BASE_URL}/api/v1/bom" \
140+
-X POST "${{ vars.DEPENDENCY_TRACK_BASE_URL }}/api/v1/bom" \
141141
-H "Content-Type: multipart/form-data" \
142-
-H "X-API-Key: ${DEPENDENCY_TRACK_API_KEY}" \
142+
-H "X-API-Key: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}" \
143143
-F "project=${2}" \
144144
-F "bom=@${1}"
145145
}
146146
147-
upload_bom "bom.nextcloud.xml" "${DT_OBJECT_NEXTCLOUD}"
147+
upload_bom "bom.nextcloud.xml" "${{ vars.DT_OBJECT_NEXTCLOUD }}"

0 commit comments

Comments
 (0)