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

Error: Bad credentials #46

Open
dschwarz2011 opened this issue Mar 9, 2022 · 2 comments
Open

Error: Bad credentials #46

dschwarz2011 opened this issue Mar 9, 2022 · 2 comments

Comments

@dschwarz2011
Copy link

dschwarz2011 commented Mar 9, 2022

I am receiving a Bad credentials permissions error when trying to run this job. I've tried with both setting the token manually as seen below and without it (which uses the default value specified in action.yml ). Not exactly sure why this is failing as github.token (or GITHUB_TOKEN) is automatically defined when you add the GitHub action. I've checked the permissions in the repo and GITHUB_TOKEN is allowed read write permissions. Any assistance is appreciated.

Below is the workflow playbook.

name: Commit

# Controls when the workflow will run
on:
  # Triggers the workflow on pull request events but only for the master branch
  pull_request:
    types:
      - closed
          
jobs:
  #If Pull request is merged into the master branch
  changedfiles:
    if: github.event.pull_request.merged == true
    runs-on: [ self-hosted ]
    steps:
        - uses: jitterbit/get-changed-files@v1
          with:
            token: ${{ secrets.GITHUB_TOKEN }}
            format: 'json'
@Thangarajsubramani
Copy link

even i am facing the same
but not sure why need this action then

@sajithgowda
Copy link

@dschwarz2011 @Thangarajsubramani - I am facing the same issue, did you able to resolve the issue?

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

3 participants