Skip to content

fix: Use 'permissions: read-all' shorthand instead of 'all: read'#175

Merged
pelikhan merged 1 commit intogithubnext:mainfrom
jbottigliero:fix-permissions-read-all-shorthand
Feb 19, 2026
Merged

fix: Use 'permissions: read-all' shorthand instead of 'all: read'#175
pelikhan merged 1 commit intogithubnext:mainfrom
jbottigliero:fix-permissions-read-all-shorthand

Conversation

@jbottigliero
Copy link
Contributor

I was encountering the following error when running gh aw compile with the provided .github/workflows/daily-test-improver.md.

gh aw compile

.github/workflows/daily-test-improver.md:1:1: warning: Missing required permissions for github toolsets:
  - discussions: read (required by discussions)

To fix this, you can either:

Option 1: Add missing permissions to your workflow frontmatter:
permissions:
  discussions: read

See: https://github.com/github/gh-aw/blob/main/docs/src/content/docs/reference/permissions.md

Option 2: Reduce the required toolsets in your workflow:
Remove or adjust toolsets that require these permissions:
  - discussions

It seems like most other workflows are using the permissions: read-all shorthand. After modifying the workflow I was able to compile successfully. I haven't dug into the gh-aw code, but assume this is the preferred method for setting the read all permission; Updates other all: read call sites.


gh --version
gh version 2.87.0 (2026-02-18)
https://github.com/cli/cli/releases/tag/v2.87.0
gh extension list
NAME   REPO          VERSION
gh aw  github/gh-aw  v0.46.4

@jbottigliero jbottigliero force-pushed the fix-permissions-read-all-shorthand branch from 8645012 to ecd2037 Compare February 19, 2026 14:47
@pelikhan pelikhan merged commit 1a01981 into githubnext:main Feb 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments