Permissions to edit repo description from github actions?

I wrote a composite action to edit repo description and homepage using gh and this API: https://docs.github.com/en/rest/reference/repos#update-a-repository

I got an auth error, so I tried to add metadata: write permissions to the workflow which does not work.

The workflow is not valid. .github/workflows/release.yaml (Line: 11, Col: 3): Unexpected value 'metadata'

Is there some other permission I need to allow a composite action to edit the repo metadata?
I found this doc, but I don’t see what permission to change since metadata seems to be invalid: Automatic token authentication - GitHub Docs

Here is my composite action: ci/action.yaml at 38f7c5c8a09a4f4607f2a44fc7573abb60cc2a16 · StackStorm-Exchange/ci · GitHub
The reusable workflow that uses it: ci/pack-repo_meta.yaml at 38f7c5c8a09a4f4607f2a44fc7573abb60cc2a16 · StackStorm-Exchange/ci · GitHub
The actual workflow that calls the reusable workflow: stackstorm-test/release.yaml at 8660c31b7cd23adf01833df361781bbb87c2a39f · StackStorm-Exchange/stackstorm-test · GitHub