File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ name: Secure Integration test
3
3
on :
4
4
pull_request_target :
5
5
branches : main
6
-
6
+
7
7
jobs :
8
8
authorization-check :
9
9
permissions : read-all
10
10
runs-on : ubuntu-latest
11
- outputs :
11
+ outputs :
12
12
approval-env : ${{ steps.collab-check.outputs.result }}
13
13
steps :
14
14
- name : Collaborator Check
15
15
uses : actions/github-script@v7
16
16
id : collab-check
17
17
with :
18
18
result-encoding : string
19
- script : |
19
+ script : |
20
20
try {
21
21
const permissionResponse = await github.rest.repos.getCollaboratorPermissionLevel({
22
22
owner: context.repo.owner,
31
31
} else {
32
32
console.log(`Verifed ${context.payload.pull_request.user.login} has write access. Auto Approving PR Checks.`)
33
33
return "auto-approve"
34
- }
34
+ }
35
35
} catch (error) {
36
36
console.log(`${context.payload.pull_request.user.login} does not have write access. Requiring Manual Approval to run PR Checks.`)
37
37
return "manual-approval"
45
45
pull-requests : read
46
46
contents : read
47
47
steps :
48
- - name : Configure Credentials
48
+ - name : Configure Credentials
49
49
uses : aws-actions/configure-aws-credentials@v4
50
- with :
50
+ with :
51
51
role-to-assume : ${{ secrets.STRANDS_INTEG_TEST_ROLE }}
52
52
aws-region : us-east-1
53
53
mask-aws-account-id : true
69
69
AWS_REGION_NAME : us-east-1 # Needed for LiteLLM
70
70
id : tests
71
71
run : |
72
- hatch test tests-integ
73
-
74
-
72
+ hatch test tests-integ/test_model_litellm.py::test_agent
You can’t perform that action at this time.
0 commit comments