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