CI: Setup permissions for workflows.

This commit is contained in:
Joachim Bauch 2023-01-17 11:29:54 +01:00
parent d8927601be
commit a8ffcfa156
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
10 changed files with 34 additions and 0 deletions

View file

@ -4,6 +4,9 @@ on:
schedule:
- cron: "0 2 * * SUN"
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest

View file

@ -16,6 +16,9 @@ on:
schedule:
- cron: '28 2 * * 5'
permissions:
contents: read
jobs:
analyze:
name: Analyze

View file

@ -9,9 +9,14 @@ on:
issue_comment:
types: created
permissions:
contents: read
jobs:
rebase:
runs-on: ubuntu-latest
permissions:
contents: none
# On pull requests and if the comment starts with `/rebase`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')

View file

@ -8,6 +8,9 @@ on:
tags:
- "v*.*.*"
permissions:
contents: read
jobs:
server:
runs-on: ubuntu-latest

View file

@ -12,6 +12,9 @@ on:
- '.github/workflows/docker-compose.yml'
- 'docker-compose.yml'
permissions:
contents: read
jobs:
pull:
runs-on: ubuntu-latest

View file

@ -12,6 +12,9 @@ on:
- '.github/workflows/docker-janus.yml'
- 'docker/janus/Dockerfile'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest

View file

@ -6,6 +6,9 @@ on:
push:
branches: [ master ]
permissions:
contents: read
jobs:
server:
runs-on: ubuntu-latest

View file

@ -14,6 +14,9 @@ on:
- '**.go'
- 'go.*'
permissions:
contents: read
jobs:
lint:
name: golang

View file

@ -16,6 +16,9 @@ on:
- 'go.*'
- 'Makefile'
permissions:
contents: read
jobs:
create:
strategy:

View file

@ -16,6 +16,9 @@ on:
- 'go.*'
- 'Makefile'
permissions:
contents: read
jobs:
go:
env:
@ -87,6 +90,8 @@ jobs:
parallel: true
finish:
permissions:
contents: none
needs: go
runs-on: ubuntu-latest
steps: