Skip to content

Fail instead of warning when insufficient permissions? #1520

@derelbenkoenig

Description

@derelbenkoenig

If you configure this workflow with insufficient permissions, e.g. the actions: read or checks: read missing, the action emits a warning but does not fail. Example

    try {
      checkSuite = await getCompletedCheckSuite(octokit, { node_id: e.workflow_run.check_suite_node_id })
    } catch (error) {
      core.warning(`Could not get the check suite: ${String(error)}`)
    }

Is this intended? Should it be configurable with action inputs to make it fail instead of just warning?

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