Small Fix: Release_Channels permissions (#5852)

This commit is contained in:
Austin
2025-01-14 02:17:54 -05:00
committed by GitHub
parent 729c39fb86
commit dd9ab7f0e1
2 changed files with 15 additions and 27 deletions

View File

@@ -51,25 +51,11 @@ jobs:
webhook_url = f"https://copr.fedorainfracloud.org/webhooks/github/{project_id}/{hook_secret}/meshtasticd/"
copr_payload = {
"event": "push",
"payload": {
"ref": "${{ github.ref }}",
"after": "${{ github.sha }}",
"repository": {
"id": "${{ github.repository_id }}",
"full_name": "${{ github.repository }}",
"git_url": "${{ github.repositoryUrl }}",
"owner": {
"name": "${{ github.repository_owner }}"
}
},
"pusher": {
"name": "${{ github.actor }}"
},
"sender": {
"login": "github-actions[bot]"
"clone_url": "${{ github.server_url }}/${{ github.repository }}.git",
}
}
}
r = requests.post(webhook_url, json=copr_payload)
r = requests.post(webhook_url, json=copr_payload, headers={"X-GitHub-Event": "push"})
r.raise_for_status()

View File

@@ -4,7 +4,9 @@ on:
release:
types: [published, released]
permissions: read-all
permissions:
contents: write
packages: write
jobs:
package-ppa: