Skip to content

Commit

Permalink
test permissions (microsoft#1264)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
4 people authored and quantum-ciphers committed Jan 26, 2024
1 parent 642ff05 commit bd3f865
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/contrib-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
- 'test/agentchat/contrib/**'
- '.github/workflows/contrib-openai.yml'
- 'setup.py'

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
RetrieveChatTest:
strategy:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/contrib-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
RetrieveChatTest:
runs-on: ${{ matrix.os }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ on:
workflow_dispatch:
merge_group:
types: [checks_requested]

permissions:
pages: write
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
checks:
if: github.event_name != 'push'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/dotnet-run-openai-test-and-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
- 'dotnet/**'
env:
BUILD_CONFIGURATION: Release # set this to the appropriate build configuration

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
build:
environment: dotnet
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- "notebook/agentchat_auto_feedback_from_code_execution.ipynb"
- "notebook/agentchat_function_call.ipynb"
- ".github/workflows/openai.yml"
permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read

jobs:
test:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ on: # Trigger the workflow on pull request or merge
defaults:
run:
shell: bash

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:

pre-commit-check:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ name: python-package
on:
release:
types: [published]

permissions: {}
# actions: read
# checks: read
# contents: read
# deployments: read
jobs:
deploy:
strategy:
Expand Down

0 comments on commit bd3f865

Please sign in to comment.