Skip to content

Commit

Permalink
Explicitely ask for permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
elegaanz committed Sep 26, 2024
1 parent e9583f5 commit 7f06adc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/github/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ impl GitHubAuth for GitHub<AuthJwt> {
let installation_id = installation.id();
let installation_token: InstallationToken = self
.post(format!("app/installations/{installation_id}/access_tokens"))
.json(&serde_json::json!({
"repositories": ["packages"],
"permissions": {
"metadata": "read",
"issues": "write",
"pull_requests": "write",
"checks": "write",
}
}))
.send()
.await?
.parse_json()
Expand Down

0 comments on commit 7f06adc

Please sign in to comment.