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

View File

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