Skip to content

Commit

Permalink
test curl response and token
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 10, 2024
1 parent bd28164 commit 634efcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
go run . &
GO_PID=$!
sleep 2s
echo "${GH_TOKEN}"
CURL_RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null --header "Authorization: Bearer $(echo GH_TOKEN | base64 -d)" http://localhost:8000/auth)
echo "$(GH_TOKEN | base64)"
CURL_RESPONSE=$(curl --write-out '%{http_code}' --output /dev/null --header "Authorization: Bearer ${GH_TOKEN}" http://localhost:8000/auth)
kill -9 $GO_PID
echo "Curl status code: ${CURL_RESPONSE}!"
:
Expand Down

0 comments on commit 634efcf

Please sign in to comment.