mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Set minimal workflow permissions (#53297)
This commit is contained in:
parent
c797bd2f5f
commit
da8dfbf0ff
@ -3,10 +3,16 @@ name: Accept Baselines and Fix Lints
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -10,6 +10,9 @@ on:
|
||||
- main
|
||||
- release-*
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/codeql.yml
vendored
3
.github/workflows/codeql.yml
vendored
@ -21,6 +21,9 @@ on:
|
||||
# * * * * *
|
||||
- cron: '30 1 * * 0'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
||||
|
||||
@ -11,6 +11,9 @@ on:
|
||||
- cron: '0 0 1 * *'
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/error-deltas-watchdog.yaml
vendored
3
.github/workflows/error-deltas-watchdog.yaml
vendored
@ -5,6 +5,9 @@ on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 3' # Every Wednesday
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check-for-recent:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
6
.github/workflows/new-release-branch.yaml
vendored
6
.github/workflows/new-release-branch.yaml
vendored
@ -4,10 +4,16 @@ on:
|
||||
repository_dispatch:
|
||||
types: new-release-branch
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- run: |
|
||||
|
||||
3
.github/workflows/nightly.yaml
vendored
3
.github/workflows/nightly.yaml
vendored
@ -8,6 +8,9 @@ on:
|
||||
repository_dispatch:
|
||||
types: publish-nightly
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -5,6 +5,9 @@ on:
|
||||
branches:
|
||||
- release-*
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/rich-navigation.yml
vendored
3
.github/workflows/rich-navigation.yml
vendored
@ -10,6 +10,9 @@ on:
|
||||
- main
|
||||
- release-*
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
richnav:
|
||||
runs-on: windows-latest
|
||||
|
||||
6
.github/workflows/set-version.yaml
vendored
6
.github/workflows/set-version.yaml
vendored
@ -4,10 +4,16 @@ on:
|
||||
repository_dispatch:
|
||||
types: set-version
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
6
.github/workflows/sync-branch.yaml
vendored
6
.github/workflows/sync-branch.yaml
vendored
@ -9,10 +9,16 @@ on:
|
||||
description: 'Target Branch Name'
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
3
.github/workflows/sync-wiki.yml
vendored
3
.github/workflows/sync-wiki.yml
vendored
@ -2,6 +2,9 @@ name: Sync Two Wiki Repos
|
||||
|
||||
on: [gollum]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/twoslash-repros.yaml
vendored
3
.github/workflows/twoslash-repros.yaml
vendored
@ -19,6 +19,9 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run:
|
||||
if: ${{ github.repository == 'microsoft/TypeScript' }}
|
||||
|
||||
6
.github/workflows/update-lkg.yml
vendored
6
.github/workflows/update-lkg.yml
vendored
@ -3,10 +3,16 @@ name: Update LKG
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
6
.github/workflows/update-package-lock.yaml
vendored
6
.github/workflows/update-package-lock.yaml
vendored
@ -7,11 +7,17 @@ on:
|
||||
- cron: '0 6 * * *'
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user