Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation update if using GitHub App #27

Open
igitcode opened this issue Dec 4, 2024 · 1 comment
Open

Documentation update if using GitHub App #27

igitcode opened this issue Dec 4, 2024 · 1 comment

Comments

@igitcode
Copy link

igitcode commented Dec 4, 2024

Not really an issue, but I need to use a GH app to bypass branch protection rules. So my configuration is as follows:

On git checkout, you must not persist credentials, otherwise they cannot be overridden by github_token input var:

      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          persist-credentials: 'false'

I used the actions/create-github-app-token action to generate token from GitHub App ID and PrivateKey.

      - uses: actions/create-github-app-token@v1
        id: app-token

I can use that token on this action as:

    - name: Commit Changes
       id: commit-changes
       uses: actions-js/push@v1.5
       with:
         github_token: ${{ steps.app-token.outputs.token }}
@igitcode
Copy link
Author

igitcode commented Dec 4, 2024

Apparently this causes the rebase command to fail, because it has no user name 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant