build: harden workflow permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
fae24d86f5
commit
9074ad93c6
|
@ -18,6 +18,9 @@ on:
|
|||
- ".github/workflows/cygwin.yml"
|
||||
- "run*tests.py"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: windows-latest
|
||||
|
|
|
@ -23,6 +23,9 @@ on:
|
|||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# do not run the weekly scheduled job in a fork
|
||||
|
|
|
@ -19,6 +19,9 @@ on:
|
|||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
contents: write # for release creation (svenstaro/upload-release-action)
|
||||
|
||||
# This job is copy/paster into wrapdb CI, please update it there when doing any
|
||||
# change here.
|
||||
jobs:
|
||||
|
|
Loading…
Reference in New Issue