mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Updated workflow permissions. (#5216)
This commit is contained in:
7
.github/workflows/codeql-analysis.yml
vendored
7
.github/workflows/codeql-analysis.yml
vendored
@@ -8,8 +8,15 @@ on:
|
||||
schedule:
|
||||
- cron: '22 10 * * 4'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
permissions:
|
||||
actions: read # for github/codeql-action/init to get workflow details
|
||||
contents: read # for actions/checkout to fetch code
|
||||
security-events: write # for github/codeql-action/autobuild to send a status report
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
@@ -9,6 +9,9 @@ on:
|
||||
description: "Release (e.g., v1.9.0)"
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
docker-release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/go.coverage.yml
vendored
3
.github/workflows/go.coverage.yml
vendored
@@ -1,5 +1,8 @@
|
||||
name: Go Coverage
|
||||
on: [pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Coverage
|
||||
|
||||
3
.github/workflows/go.test.yml
vendored
3
.github/workflows/go.test.yml
vendored
@@ -1,5 +1,8 @@
|
||||
name: Go Tests
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
|
||||
6
.github/workflows/stale.yml
vendored
6
.github/workflows/stale.yml
vendored
@@ -3,8 +3,14 @@ on:
|
||||
schedule:
|
||||
- cron: '30 1 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write # for actions/stale to close stale issues
|
||||
pull-requests: write # for actions/stale to close stale PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@7fb802b3079a276cf3c7e6ba9aa003c665b3f838
|
||||
|
||||
Reference in New Issue
Block a user