build: be explicit about workflow permissions (#10690)
Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -9,6 +9,11 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# The go version to use for builds. We set check-latest to true when
|
# The go version to use for builds. We set check-latest to true when
|
||||||
# installing, so we get the latest patch version that matches the
|
# installing, so we get the latest patch version that matches the
|
||||||
@@ -1020,6 +1025,7 @@ jobs:
|
|||||||
VERSION: ${{ needs.facts.outputs.version }}
|
VERSION: ${{ needs.facts.outputs.version }}
|
||||||
RELEASE_KIND: ${{ needs.facts.outputs.release-kind }}
|
RELEASE_KIND: ${{ needs.facts.outputs.release-kind }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
pkg:
|
pkg:
|
||||||
- syncthing
|
- syncthing
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ name: Mirrors
|
|||||||
|
|
||||||
on: [push, delete]
|
on: [push, delete]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codeberg:
|
codeberg:
|
||||||
name: Mirror to Codeberg
|
name: Mirror to Codeberg
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ on:
|
|||||||
# Run nightly build at 01:00 UTC
|
# Run nightly build at 01:00 UTC
|
||||||
- cron: '00 01 * * *'
|
- cron: '00 01 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
trigger-nightly:
|
trigger-nightly:
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '42 3 * * 1'
|
- cron: '42 3 * * 1'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
update_transifex_docs:
|
update_transifex_docs:
|
||||||
|
|||||||
Reference in New Issue
Block a user