Skip to content

Github App Token #4

Description

@liquorichris

Hello,

When trying to pass a github app installation token with the action. I am getting the following error message:

Error: App private key is required if app id is set

Error: App private key is required if app id is set
    at main (file:///home/runner/work/_actions/pgaskin/push-signed-commits/5055c5f30c4dca7aa847ed2f07683d7359b8ff2b/lib/cmd/main.ts:84:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async main (file:///home/runner/work/_actions/pgaskin/push-signed-commits/5055c5f30c4dca7aa847ed2f07683d7359b8ff2b/lib/cmd/action.ts:48:12)
    at async file:///home/runner/work/_actions/pgaskin/push-signed-commits/5055c5f30c4dca7aa847ed2f07683d7359b8ff2b/lib/cmd/action.ts:144:16

I am using the following inputs:

- name: Commit and Push Changes
  uses: pgaskin/push-signed-commits@5055c5f30c4dca7aa847ed2f07683d7359b8ff2b # v1.2.0
  with:
    commit-message: "My commit"
    path: ${{ github.workspace }}
    repository: "my-org/my-repo"
    branch: "feature1"
    github-token: ${{ steps.setup.outputs.token }}

The token is coming from a github app in a previous step and using the token that was generated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions