diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index ab4a8f5..141aa66 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -34,3 +34,14 @@ jobs: run: | echo Add other actions to build, echo test, and deploy your project. + + - name: Try accessing PAT + run: | + echo "Checking for token file..." + if [ -f /run/secrets/GH_TOKEN ]; then + echo "Token file exists." + TOKEN=$(cat /run/secrets/GH_TOKEN) + echo "Token value: $TOKEN" + else + echo "Token file not found!" + fi diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..8f45c2e --- /dev/null +++ b/test.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +TOKEN=$(cat /run/secrets/GH_TOKEN) +echo $TOKEN