Skip to content

Commit f47d0a1

Browse files
fixed permissions (#246)
1 parent 92c6e26 commit f47d0a1

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/python-merge-tests.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Python - Tests - Merge
1+
name: Python - Merge - Tests
22

33
on:
44
workflow_dispatch:
55
merge_group:
66
branches: ["main"]
77

88
permissions:
9-
contents: read
9+
contents: write
1010
id-token: write
1111

1212
env:
@@ -31,8 +31,6 @@ jobs:
3131
OPENAI_CHAT_MODEL_ID: ${{ vars.OPENAI__CHATMODELID }}
3232
OPENAI_API_KEY: ${{ secrets.OPENAI__APIKEY }}
3333
PACKAGE_NAME: "main"
34-
permissions:
35-
contents: write
3634
defaults:
3735
run:
3836
working-directory: python
@@ -85,8 +83,6 @@ jobs:
8583
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME: ${{ vars.AZUREAI__DEPLOYMENTNAME }}
8684
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZUREAI__ENDPOINT }}
8785
PACKAGE_NAME: "azure"
88-
permissions:
89-
contents: write
9086
defaults:
9187
run:
9288
working-directory: python
@@ -102,12 +98,6 @@ jobs:
10298
- name: Install the project
10399
run: |
104100
uv sync --all-packages --all-extras --dev -U --prerelease=if-necessary-or-explicit
105-
- name: Check setup
106-
run: |
107-
az version
108-
echo "ACTIONS_ID_TOKEN_REQUEST_URL = $ACTIONS_ID_TOKEN_REQUEST_URL"
109-
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN = $ACTIONS_ID_TOKEN_REQUEST_TOKEN"
110-
echo "TENANT_ID=${{ secrets.AZURE_TENANT_ID }}"
111101
- name: Azure CLI Login
112102
if: github.event_name != 'pull_request'
113103
uses: azure/login@v2
@@ -152,8 +142,6 @@ jobs:
152142
FOUNDRY_PROJECT_ENDPOINT: ${{ vars.FOUNDRY_PROJECT_ENDPOINT }}
153143
FOUNDRY_MODEL_DEPLOYMENT_NAME: ${{ vars.FOUNDRY_MODEL_DEPLOYMENT_NAME }}
154144
PACKAGE_NAME: "foundry"
155-
permissions:
156-
contents: write
157145
defaults:
158146
run:
159147
working-directory: python

0 commit comments

Comments
 (0)