fix(ci): add missing workflow permissions to resolve security alerts (#646)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7697b6fb47
commit
a21e41b89d
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ on:
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
license-check:
|
license-check:
|
||||||
name: License Check
|
name: License Check
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue