Skip to content

Error: Parameter token or opts.auth is required #458

@praveshishere

Description

@praveshishere

What happened

I'm trying to add a label mylabel whenever a new issue or PR is created on my repo but it doesn't work in case of creating a PR from a fork.

I'm getting this error when a PR is made from fork

Error: Parameter token or opts.auth is required

Workflow file: https://github.com/PrinceAtVidyaMantra/TestGihubAddLabel/blob/main/.github/workflows/addMyLabel.yml

What you expected to happen

The workflow should have been run successfully and mylabel label should have been added

How to reproduce it

Here is the workflow file,
and the test run failed.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions