mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
ci: Add GitHub token permissions for workflows (#61065)
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
This commit is contained in:
3
.github/workflows/CI.yml
vendored
3
.github/workflows/CI.yml
vendored
@@ -1,6 +1,9 @@
|
||||
name: CI
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/UpdateCodeowners.yml
vendored
3
.github/workflows/UpdateCodeowners.yml
vendored
@@ -10,6 +10,9 @@ on:
|
||||
- cron: "5 8 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
6
.github/workflows/ghostbuster.yml
vendored
6
.github/workflows/ghostbuster.yml
vendored
@@ -11,8 +11,14 @@ on:
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
ghostbust:
|
||||
permissions:
|
||||
contents: write # for Git to git push
|
||||
pull-requests: write # for peter-evans/create-pull-request to create a PR
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
|
||||
|
||||
|
||||
3
.github/workflows/lint-md.yml
vendored
3
.github/workflows/lint-md.yml
vendored
@@ -3,6 +3,9 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.md'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint-md:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
5
.github/workflows/support-window.yml
vendored
5
.github/workflows/support-window.yml
vendored
@@ -10,8 +10,13 @@ on:
|
||||
# Manually, when TypeScript is released
|
||||
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
support-window:
|
||||
permissions:
|
||||
contents: write # for Git to git push
|
||||
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user