Skip to content

The workflow compiler always adds discussions permission into generated jobs #16314

@jaroslawgajewski

Description

@jaroslawgajewski

Problem

  • Observed behavior: The workflow compiler always adds discussions permission into generated jobs: conclusion and safe_outputs.
  agent:
    needs: activation
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      **discussions: read**

if discussions are not available (GitHub Enterprise) GitHub app cannot have such scope

Expected result

if discussions are nt defined in premissions -> md file they should not be included

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions