GITHUB_TOKEN for basic auth

I am looking for a way to use GITHUB_TOKEN for basic authentication as described in the document below.

I used my username for username of basic auth, but it didn’t work. I suspect that GITHUB_TOKEN might not available for this purpose. Does anyone have ideas for this issue ?

GITHUB_TOKEN is not Basic Auth, it’s a Bearer token as here:

        curl --request POST \
        --url https://api.github.com/repos/${{ github.repository }}/issues \
        --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \