Skip to content

Commit 81dc8bb

Browse files
Copilotroryeckel
andcommitted
Update GitHub API headers from deprecated v3 to current version for future compatibility
Co-authored-by: roryeckel <16675082+roryeckel@users.noreply.github.com>
1 parent a02428c commit 81dc8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
API_URL="https://api.github.com/${API_BASE}/packages/container/${PACKAGE_NAME}/versions"
4949
RESPONSE=$(curl -sSf \
5050
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
51-
-H "Accept: application/vnd.github.v3+json" \
51+
-H "Accept: application/vnd.github+json" \
5252
"${API_URL}" 2>&1)
5353
CURL_EXIT_CODE=$?
5454
if [ $CURL_EXIT_CODE -ne 0 ]; then
@@ -65,7 +65,7 @@ jobs:
6565
DELETE_URL="${API_URL}/${VERSION_ID}"
6666
DELETE_RESPONSE=$(curl -sSf -X DELETE \
6767
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
68-
-H "Accept: application/vnd.github.v3+json" \
68+
-H "Accept: application/vnd.github+json" \
6969
"${DELETE_URL}" 2>&1)
7070
DELETE_EXIT_CODE=$?
7171
if [ $DELETE_EXIT_CODE -eq 0 ]; then

0 commit comments

Comments
 (0)