Skip to content

Error: Bad credentials #42

@chaturvedisumit

Description

@chaturvedisumit

I am running the labeler WF on an enterprise repo and it gives me the bad credentials error.

While running the same on a personal repo, it works smoothly. Not able to debug the issue.

Workflow :

name: PR Branch Labeler

on: pull_request

jobs:
  label_prs:
    runs-on: [<runner labels>]
    steps:
    - name: Label PRs
      if: github.event.action == 'opened' # Only run the action when the PR was first opened
      uses: ffittschen/pr-branch-labeler@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

Config :

# Apply label "feature" if head matches "feature/*"
major:
  head: feature/*

# Apply label "bugfix" if head matches "bugfix/*"
minor:
  head: "bugfix/*"

patch:
  head: "hotfix/*"

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