fix(ci): add missing workflow permissions to resolve security alerts (#646)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -11,6 +11,10 @@ on:
|
|||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
actions: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
4
.github/workflows/ci@main.yml
vendored
4
.github/workflows/ci@main.yml
vendored
@@ -12,6 +12,10 @@ on:
|
|||||||
- 'rush.json'
|
- 'rush.json'
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/common-pr-checks.yml
vendored
3
.github/workflows/common-pr-checks.yml
vendored
@@ -9,6 +9,9 @@ on:
|
|||||||
- 'rush.json'
|
- 'rush.json'
|
||||||
types: [opened, edited, synchronize, reopened]
|
types: [opened, edited, synchronize, reopened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
common-checks:
|
common-checks:
|
||||||
name: PR Common Checks
|
name: PR Common Checks
|
||||||
|
|||||||
3
.github/workflows/idl.yaml
vendored
3
.github/workflows/idl.yaml
vendored
@@ -12,6 +12,9 @@ on:
|
|||||||
- 'idl/**'
|
- 'idl/**'
|
||||||
- '.github/workflows/idl.yaml'
|
- '.github/workflows/idl.yaml'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-thrift:
|
validate-thrift:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
3
.github/workflows/license-check.yaml
vendored
3
.github/workflows/license-check.yaml
vendored
@@ -7,6 +7,9 @@ on:
|
|||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
license-check:
|
license-check:
|
||||||
name: License Check
|
name: License Check
|
||||||
|
|||||||
3
.github/workflows/semantic-pull-request.yaml
vendored
3
.github/workflows/semantic-pull-request.yaml
vendored
@@ -11,6 +11,9 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Check Pull Request Title
|
name: Check Pull Request Title
|
||||||
|
|||||||
Reference in New Issue
Block a user