mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 10:25:10 -05:00
Add additional permissions (#5217)
* Add additional permissions Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix yamllint warning Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -14,9 +14,9 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
permissions:
|
permissions:
|
||||||
actions: read # for github/codeql-action/init to get workflow details
|
actions: read # for github/codeql-action/init to get workflow details
|
||||||
contents: read # for actions/checkout to fetch code
|
contents: read # for actions/checkout to fetch code
|
||||||
security-events: write # for github/codeql-action/autobuild to send a status report
|
security-events: write # for github/codeql-action/autobuild to send a status report
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/go.fmt.yml
vendored
4
.github/workflows/go.fmt.yml
vendored
@@ -4,9 +4,13 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '22 10 * * 1'
|
- cron: '22 10 * * 1'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fix:
|
fix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||||
|
|||||||
4
.github/workflows/go.tidy.yml
vendored
4
.github/workflows/go.tidy.yml
vendored
@@ -4,9 +4,13 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '22 10 * * 3'
|
- cron: '22 10 * * 3'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fix:
|
fix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
||||||
|
|||||||
4
.github/workflows/make.doc.yml
vendored
4
.github/workflows/make.doc.yml
vendored
@@ -4,9 +4,13 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '22 10 * * 0'
|
- cron: '22 10 * * 0'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fix:
|
fix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||||
|
|||||||
2
.github/workflows/reviewdog.yml
vendored
2
.github/workflows/reviewdog.yml
vendored
@@ -5,6 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gofmt:
|
gofmt:
|
||||||
name: Go Fmt
|
name: Go Fmt
|
||||||
|
|||||||
4
.github/workflows/stale.yml
vendored
4
.github/workflows/stale.yml
vendored
@@ -9,8 +9,8 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
permissions:
|
permissions:
|
||||||
issues: write # for actions/stale to close stale issues
|
issues: write # for actions/stale to close stale issues
|
||||||
pull-requests: write # for actions/stale to close stale PRs
|
pull-requests: write # for actions/stale to close stale PRs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@7fb802b3079a276cf3c7e6ba9aa003c665b3f838
|
- uses: actions/stale@7fb802b3079a276cf3c7e6ba9aa003c665b3f838
|
||||||
|
|||||||
4
.github/workflows/whitespace.yml
vendored
4
.github/workflows/whitespace.yml
vendored
@@ -4,9 +4,13 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '22 10 * * 2'
|
- cron: '22 10 * * 2'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fix:
|
fix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||||
|
|||||||
1
.github/workflows/yamllint.yml
vendored
1
.github/workflows/yamllint.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: 'Yamllint GitHub Actions'
|
name: 'Yamllint GitHub Actions'
|
||||||
on:
|
on:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
yamllint:
|
yamllint:
|
||||||
name: 'Yamllint'
|
name: 'Yamllint'
|
||||||
|
|||||||
Reference in New Issue
Block a user