Skip to content

Commit

Permalink
DIOS-2498 Fix access token generation
Browse files Browse the repository at this point in the history
  • Loading branch information
msobo1 authored and abuszta committed Oct 11, 2023
1 parent 93cde05 commit 2f8d29c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 271 deletions.
3 changes: 1 addition & 2 deletions .github/actions/download_libwebrtc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Download libWebRTC'
description: 'Download libWebRTC'
inputs:
access_token:
description: 'GH App Installation access token - base64'
description: 'GH App Installation access token'
required: true
release_tag:
description: 'LibWebRTC release tag.'
Expand All @@ -17,7 +17,6 @@ runs:
- run: |
echo "Looking for libwebrtc using the pattern: ${LIBWEBRTC_ASSETS_PATTERN}"
echo "LibWebRTC release tag: ${LIBWEBRTC_RELEASE_TAG}"
export GH_ACCESS_TOKEN_1H_EXPIRATION=$(echo ${GH_ACCESS_TOKEN_1H_EXPIRATION} | base64 -d)
export LIBWEBRTC_RELEASE_URL=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GH_ACCESS_TOKEN_1H_EXPIRATION}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/CoSMoSoftware/libwebrtc-cmake/releases/tags/${LIBWEBRTC_RELEASE_TAG} | jq .url | tr -d '"')
echo "LIBWEBRTC_RELEASE_URL: ${LIBWEBRTC_RELEASE_URL}"
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GH_ACCESS_TOKEN_1H_EXPIRATION}" -H "X-GitHub-Api-Version: 2022-11-28" ${LIBWEBRTC_RELEASE_URL}/assets > assets.json
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/download_libwebrtc/win/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Download libWebRTC'
description: 'Download libWebRTC'
inputs:
access_token:
description: 'GH App Installation access token - base64'
description: 'GH App Installation access token'
required: true
release_tag:
description: 'LibWebRTC release tag.'
Expand All @@ -17,7 +17,6 @@ runs:
- run: |
Write-Host "Looking for libwebrtc using the pattern: $env:LIBWEBRTC_ASSETS_PATTERN"
Write-Host "LibWebRTC release tag: $env:LIBWEBRTC_RELEASE_TAG"
$env:GH_ACCESS_TOKEN_1H_EXPIRATION = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($env:GH_ACCESS_TOKEN_1H_EXPIRATION)).Trim()
$env:LIBWEBRTC_RELEASE_URL = cmd.exe /c curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $env:GH_ACCESS_TOKEN_1H_EXPIRATION" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/CoSMoSoftware/libwebrtc-cmake/releases/tags/$env:LIBWEBRTC_RELEASE_TAG" | jq -r .url
Write-Host $env:LIBWEBRTC_RELEASE_URL
Expand Down
235 changes: 0 additions & 235 deletions .github/workflows/macOSarm64.yml

This file was deleted.

Loading

0 comments on commit 2f8d29c

Please sign in to comment.