Skip to content

403 recieved when creating mutex should not be retried #15

@leemeador

Description

@leemeador

Currently:

When the token supplied does not have permission to create the mutex thingy in the repo, the call to the github api returns HTTP 403 (forbidden). Then the action waits a bit and reties and it still does not have permission. This will repeat for, literally, hours until someone notices and cancels.

Suggested:

When the action code recieves a 403, that would fail the action. (Perhaps 401 (unauthorized) too but I haven't seen a 401.)

Related note:

We are seeing this when the mutex is trying to be set from a fork. Our settings do not allow forks to access our secrets. I suspect a similar thing would happen if the default token was used since it would not have write permission in a fork.

The same thing could happen if a token expired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions