workflows: reduce GITHUB_TOKEN permissions
This commit is contained in:
parent
b19fcef629
commit
f38a3239e6
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -9,6 +9,8 @@ on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
ubuntu:
|
||||
if: startsWith(github.repository, 'Homebrew/')
|
||||
|
||||
2
.github/workflows/doctor.yml
vendored
2
.github/workflows/doctor.yml
vendored
@ -8,6 +8,8 @@ on:
|
||||
- Library/Homebrew/extend/os/diagnostic.rb
|
||||
- Library/Homebrew/extend/os/mac/diagnostic.rb
|
||||
- Library/Homebrew/os/mac/xcode.rb
|
||||
permissions:
|
||||
contents: read
|
||||
env:
|
||||
HOMEBREW_DEVELOPER: 1
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
|
||||
3
.github/workflows/sorbet.yml
vendored
3
.github/workflows/sorbet.yml
vendored
@ -10,6 +10,9 @@ on:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
tapioca:
|
||||
if: github.repository == 'Homebrew/brew'
|
||||
|
||||
2
.github/workflows/spdx.yml
vendored
2
.github/workflows/spdx.yml
vendored
@ -7,6 +7,8 @@ on:
|
||||
- master
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
spdx:
|
||||
if: github.repository == 'Homebrew/brew'
|
||||
|
||||
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -6,6 +6,9 @@ on:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
HOMEBREW_DEVELOPER: 1
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
|
||||
2
.github/workflows/triage.yml
vendored
2
.github/workflows/triage.yml
vendored
@ -12,6 +12,8 @@ on:
|
||||
schedule:
|
||||
- cron: "0 */3 * * *" # every 3 hours
|
||||
|
||||
permissions:
|
||||
|
||||
concurrency: triage-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
|
||||
3
.github/workflows/update-man-completions.yml
vendored
3
.github/workflows/update-man-completions.yml
vendored
@ -18,6 +18,9 @@ on:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
update-manpage:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
4
.github/workflows/vendor-gems.yml
vendored
4
.github/workflows/vendor-gems.yml
vendored
@ -8,6 +8,10 @@ on:
|
||||
description: Pull request number
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
vendor-gems:
|
||||
if: >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user