Skip to content

Commit 0d31df0

Browse files
olaoluwasalamidavorrunjeekzhusonichi
authored andcommitted
test permissions (microsoft#1264)
* test permissions * test least permissions * remove contents permissions * testing permisions * Update deploy-website.yml permission block --------- Co-authored-by: Davor Runje <[email protected]> Co-authored-by: Eric Zhu <[email protected]> Co-authored-by: Chi Wang <[email protected]>
1 parent 74b0636 commit 0d31df0

8 files changed

+41
-7
lines changed

.github/workflows/build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ on:
1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
2121
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
22-
22+
permissions: {}
23+
# actions: read
24+
# checks: read
25+
# contents: read
26+
# deployments: read
2327
jobs:
2428
build:
2529
runs-on: ${{ matrix.os }}

.github/workflows/contrib-openai.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ on:
1111
- 'test/agentchat/contrib/**'
1212
- '.github/workflows/contrib-openai.yml'
1313
- 'setup.py'
14-
14+
permissions: {}
15+
# actions: read
16+
# checks: read
17+
# contents: read
18+
# deployments: read
1519
jobs:
1620
RetrieveChatTest:
1721
strategy:

.github/workflows/contrib-tests.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ on:
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
1717
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
18-
18+
permissions: {}
19+
# actions: read
20+
# checks: read
21+
# contents: read
22+
# deployments: read
1923
jobs:
2024
RetrieveChatTest:
2125
runs-on: ${{ matrix.os }}

.github/workflows/deploy-website.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ on:
1616
workflow_dispatch:
1717
merge_group:
1818
types: [checks_requested]
19-
19+
permissions:
20+
pages: write
21+
# actions: read
22+
# checks: read
23+
# contents: read
24+
# deployments: read
2025
jobs:
2126
checks:
2227
if: github.event_name != 'push'

.github/workflows/dotnet-run-openai-test-and-notebooks.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
- 'dotnet/**'
88
env:
99
BUILD_CONFIGURATION: Release # set this to the appropriate build configuration
10-
10+
permissions: {}
11+
# actions: read
12+
# checks: read
13+
# contents: read
14+
# deployments: read
1115
jobs:
1216
build:
1317
environment: dotnet

.github/workflows/openai.yml

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- "notebook/agentchat_auto_feedback_from_code_execution.ipynb"
1313
- "notebook/agentchat_function_call.ipynb"
1414
- ".github/workflows/openai.yml"
15+
permissions: {}
16+
# actions: read
17+
# checks: read
18+
# contents: read
19+
# deployments: read
1520

1621
jobs:
1722
test:

.github/workflows/pre-commit.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on: # Trigger the workflow on pull request or merge
99
defaults:
1010
run:
1111
shell: bash
12-
12+
permissions: {}
13+
# actions: read
14+
# checks: read
15+
# contents: read
16+
# deployments: read
1317
jobs:
1418

1519
pre-commit-check:

.github/workflows/python-package.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ name: python-package
77
on:
88
release:
99
types: [published]
10-
10+
permissions: {}
11+
# actions: read
12+
# checks: read
13+
# contents: read
14+
# deployments: read
1115
jobs:
1216
deploy:
1317
strategy:

0 commit comments

Comments
 (0)