ci: Add GitHub token permissions for workflows
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>master
parent
6a40de444b
commit
d28102ad75
|
@ -840,6 +840,9 @@ env:
|
||||||
zstd
|
zstd
|
||||||
zydis
|
zydis
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
autobump:
|
autobump:
|
||||||
if: github.repository == 'Homebrew/homebrew-core'
|
if: github.repository == 'Homebrew/homebrew-core'
|
||||||
|
|
|
@ -13,6 +13,9 @@ concurrency:
|
||||||
env:
|
env:
|
||||||
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1
|
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
autopublish:
|
autopublish:
|
||||||
if: github.repository == 'Homebrew/homebrew-core'
|
if: github.repository == 'Homebrew/homebrew-core'
|
||||||
|
|
|
@ -26,6 +26,9 @@ env:
|
||||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||||
HOMEBREW_CHANGE_ARCH_TO_ARM: 1
|
HOMEBREW_CHANGE_ARCH_TO_ARM: 1
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -18,6 +18,9 @@ env:
|
||||||
HOMEBREW_DEVELOPER: 1
|
HOMEBREW_DEVELOPER: 1
|
||||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload:
|
upload:
|
||||||
runs-on: ${{github.event.inputs.self_hosted == 'true' && 'linux-self-hosted-1' || 'ubuntu-latest'}}
|
runs-on: ${{github.event.inputs.self_hosted == 'true' && 'linux-self-hosted-1' || 'ubuntu-latest'}}
|
||||||
|
|
|
@ -10,6 +10,9 @@ concurrency:
|
||||||
group: recreate-linux-runners
|
group: recreate-linux-runners
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
recreate:
|
recreate:
|
||||||
if: github.repository == 'Homebrew/homebrew-core'
|
if: github.repository == 'Homebrew/homebrew-core'
|
||||||
|
|
|
@ -12,6 +12,9 @@ concurrency:
|
||||||
group: remove-disabled-formulae
|
group: remove-disabled-formulae
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
remove-disabled-formulae:
|
remove-disabled-formulae:
|
||||||
if: startsWith(github.repository, 'Homebrew/')
|
if: startsWith(github.repository, 'Homebrew/')
|
||||||
|
|
|
@ -16,6 +16,9 @@ concurrency:
|
||||||
group: "tests-${{ github.ref }}"
|
group: "tests-${{ github.ref }}"
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tap_syntax:
|
tap_syntax:
|
||||||
if: github.repository == 'Homebrew/homebrew-core'
|
if: github.repository == 'Homebrew/homebrew-core'
|
||||||
|
@ -40,6 +43,8 @@ jobs:
|
||||||
id: formulae-detect
|
id: formulae-detect
|
||||||
|
|
||||||
setup_tests:
|
setup_tests:
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
if: github.event_name == 'pull_request' && github.repository == 'Homebrew/homebrew-core'
|
if: github.event_name == 'pull_request' && github.repository == 'Homebrew/homebrew-core'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: tap_syntax
|
needs: tap_syntax
|
||||||
|
|
|
@ -6,6 +6,9 @@ concurrency:
|
||||||
group: "triage-${{ github.event.number }}"
|
group: "triage-${{ github.event.number }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue