Skip to content

Possible to use GitHub App Token? #65

Description

@jjICP

We implemented a GitHub app for a more secure token and then we use

    - name: Get GitHub App Token
      id: app-token
      uses: actions/create-github-app-token@v2
      with:
          app-id: ${{ vars.GH_APP_ID }}
          private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
          owner: ${{ github.repository_owner }}

    - name: Run PHPCS inspection
      uses: rtCamp/action-phpcs-code-review@v3
      env:
        GH_BOT_TOKEN: ${{ steps.app-token.outputs.token }}
     ....

But it throws the error when running PHPCS:

[ 2025-06-09T21:26:55+00:00 GMT -- 0 ]  "Trying to get information about the user the GitHub-token belongs to"; []
[ 2025-06-09T21:26:55+00:00 GMT -- 0 ]  "Unable to get information about token-holder user from GitHub"; []

because GitHub App tokens do not identify a user. It is possible to get this updated to be able to use GitHub app tokens? Possibly skipping the user check if it's an app token or something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions