Commit d40d2242 authored by Yong Tang's avatar Yong Tang Committed by GitHub

Add additional permissions (#5217)

* Add additional permissions
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Fix yamllint warning
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent f5acb9d1
......@@ -4,9 +4,13 @@ on:
schedule:
- cron: '22 10 * * 1'
permissions: read-all
jobs:
fix:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
......
......@@ -4,9 +4,13 @@ on:
schedule:
- cron: '22 10 * * 3'
permissions: read-all
jobs:
fix:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Go
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
......
......@@ -4,9 +4,13 @@ on:
schedule:
- cron: '22 10 * * 0'
permissions: read-all
jobs:
fix:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
......
......@@ -5,6 +5,8 @@ on:
branches:
- master
permissions: read-all
jobs:
gofmt:
name: Go Fmt
......
......@@ -4,9 +4,13 @@ on:
schedule:
- cron: '22 10 * * 2'
permissions: read-all
jobs:
fix:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
......
name: 'Yamllint GitHub Actions'
on:
- pull_request
permissions: read-all
jobs:
yamllint:
name: 'Yamllint'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment