Add write permissions to sync-metadata workflow#33
Merged
Conversation
Co-authored-by: clampr <12759785+clampr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix workflow not committing changes
Add write permissions to sync-metadata workflow
Feb 1, 2026
There was a problem hiding this comment.
Pull request overview
This PR adds write permissions to the sync-metadata workflow to enable it to push automated commits. The workflow generates static/parameters.json and static/providers.json files from the meteostat-python repository and commits them back to the docs repository, but it previously lacked the necessary GitHub Actions permissions to push those commits.
Changes:
- Added
permissions: contents: writeto the workflow-level permissions in.github/workflows/sync-metadata.yml
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sync-metadata workflow could not push commits. It had
git addandgit commitcommands but lacked repository write permissions.Changes
permissions: contents: writeto.github/workflows/sync-metadata.ymlThe workflow can now push automated updates to
static/parameters.jsonandstatic/providers.json.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.