Skip to content

Grant write permissions to dependency-graph job#880

Open
AnshumanAI wants to merge 2 commits intotypelevel:mainfrom
AnshumanAI:main
Open

Grant write permissions to dependency-graph job#880
AnshumanAI wants to merge 2 commits intotypelevel:mainfrom
AnshumanAI:main

Conversation

@AnshumanAI
Copy link

Fixes #815

The dependency-submission job generated by TypelevelCiPlugin did not set job-level permissions. This caused a 403 Unexpected Status for repos that don't have broad top-level workflow permissions, as scalacenter/sbt-dependency-submission requires contents: write to POST the dependency graph.

Sets permissions on the job using Permissions.Specify.defaultRestrictive.withContents(PermissionValue.Write) , everything stays at restrictive defaults, only contents is elevated to write.

@mergify mergify bot added the ci label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grant write permissions to dependency-graph job

1 participant