Skip to content

Commit

Permalink
Merge pull request #63 from jitsecurity-controls/sc-23729-github-serv…
Browse files Browse the repository at this point in the history
…ice-prod-authenticate-oidc-token

Update action.yml
  • Loading branch information
avichayJit committed Feb 26, 2024
2 parents 60aee2e + cbcdfe6 commit 07d5822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ runs:
AUTH_RESPONSE_BODY=${AUTH_RESPONSE:0:${#AUTH_RESPONSE}-3}
echo "github_token=$(echo $AUTH_RESPONSE_BODY | jq -r '.github_token')" >> $GITHUB_OUTPUT
echo "jit_token=$(echo $AUTH_RESPONSE_BODY | jq -r '.jit_token')" >> $GITHUB_OUTPUT
elif [ $AUTH_RESPONSE_CODE = 422 ]; then
echo "Repo is no longer accessible for the installation"
exit 104
else
echo "Got fatal error when calling auth oidc token with jit server"
exit 101
Expand Down Expand Up @@ -152,7 +155,6 @@ runs:
cat /tmp/modified_files.txt
echo "(info) Done checking out modified files"
# scans default branches and serves as a fallback for the sparse-checkout-repository step in case it fails
- name: Checkout repository
# we don't want enrichment to fail the action on empty repo, it has its own logic to handle it
Expand Down

0 comments on commit 07d5822

Please sign in to comment.