Skip to content

Commit 9093170

Browse files
authored
Merge pull request #736 from shiftstack/quay-image-expiration
Use oauth token for accessing quay API
2 parents ffefe38 + f4a9e21 commit 9093170

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/container_image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
3838
- name: Set expiration on commit image
3939
env:
40-
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} # zizmor: ignore[secrets-outside-env]
40+
QUAY_OAUTH_TOKEN: ${{ secrets.QUAY_OAUTH_TOKEN }} # zizmor: ignore[secrets-outside-env]
4141
run: |
4242
EXPIRATION=$(($(date -u +%s) + 2419200))
4343
curl -sf -X PUT \
44-
-H "Authorization: Bearer ${QUAY_TOKEN}" \
44+
-H "Authorization: Bearer ${QUAY_OAUTH_TOKEN}" \
4545
-H "Content-Type: application/json" \
4646
-d "{\"expiration\": $EXPIRATION}" \
4747
"https://quay.io/api/v1/repository/orc/openstack-resource-controller/tag/commit-${GITHUB_SHA::7}"

0 commit comments

Comments
 (0)