OpenSourceHelpCommunity / Questions

To add your question raise an issue in this repository.
MIT License
27 stars 47 forks source link

Token decoding issue #449

Closed Anushadvv closed 7 months ago

Anushadvv commented 7 months ago

If I use this I'm getting error like a json web token could not be decoded

id: generate-token

uses: tibdex/github-app-token@v1.8.2

with:

app_id: ${{ secrets.sca_github_swaweb_APP_ID}}

private_key: ${{ secrets.sca_github_swaweb_PRIVATE_KEY }}

name: Token

run:

echo "${{ steps.generate-token.outputs.token }}"

name: Get Installation ID

uses: octokit/request-action@v2.x

id: getInstallationID

with:

token: ${{ steps.generate-token.outputs.token }}

route: GET /repos/{owner}/{repo}/installation

run: |

owner: ${{github.event.repository.owner.login}}

repo: ${{github.event.repository.name}}

name: Id

echo "${{ steps.getInstallationID.outputs.installation_id }}"