mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
Small Fix: Release_Channels permissions (#5852)
This commit is contained in:
18
.github/workflows/hook_copr.yml
vendored
18
.github/workflows/hook_copr.yml
vendored
@@ -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()
|
||||||
|
|||||||
4
.github/workflows/release_channels.yml
vendored
4
.github/workflows/release_channels.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user