Skip to content

Commit 809c2ab

Browse files
Merge branch 'main' into fix/trusted-uv-downloader-current-main
2 parents 3f0fba0 + bbedc1a commit 809c2ab

6 files changed

Lines changed: 12 additions & 2 deletions

‎.github/workflows/fast-mlsirm-hourly-review-repair.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ permissions:
1515

1616
jobs:
1717
dispatch-review-repair:
18+
permissions:
19+
contents: read
20+
id-token: write
1821
uses: ./.github/workflows/pr-review-fix-scheduler.yml
1922
with:
2023
target_repository: ContextualWisdomLab/fast-mlsirm

‎.github/workflows/github-hourly-review-repair.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414

1515
jobs:
1616
dispatch-review-repair:
17+
permissions:
18+
contents: read
19+
id-token: write
1720
uses: ./.github/workflows/pr-review-fix-scheduler.yml
1821
with:
1922
target_repository: ContextualWisdomLab/.github

‎.github/workflows/governance-risk-compliance-hourly-review-repair.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ permissions:
1515

1616
jobs:
1717
dispatch-review-repair:
18+
permissions:
19+
contents: read
20+
id-token: write
1821
uses: ./.github/workflows/pr-review-fix-scheduler.yml
1922
with:
2023
target_repository: ContextualWisdomLab/governance-risk-compliance

‎tests/test_fast_mlsirm_hourly_review_caller.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_fast_mlsirm_caller_preserves_credentials_and_read_only_scope() -> None:
3636
opencode_secret = "$" + "{{ secrets.OPENCODE_APPROVE_TOKEN }}"
3737

3838
assert "\npermissions:\n contents: read\n" in workflow_scope
39-
assert "\n permissions:\n" not in jobs_scope
39+
assert "\n permissions:\n contents: read\n id-token: write\n" in jobs_scope
4040
assert f"PR_REVIEW_MERGE_TOKEN: {pr_review_secret}" in caller
4141
assert f"OPENCODE_APPROVE_TOKEN: {opencode_secret}" in caller
4242
assert "secrets: inherit" not in caller

‎tests/test_github_hourly_conflict_repair.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def test_central_repository_has_hourly_self_caller() -> None:
121121
assert "resolve_unreviewed_conflicts: true" in workflow
122122
assert 'max_dispatches: "1"' in workflow
123123
assert 'retry_hours: "1"' in workflow
124+
assert "\n permissions:\n contents: read\n id-token: write\n" in workflow
124125
assert "COPILOT_GITHUB_TOKEN" not in workflow
125126

126127

‎tests/test_governance_risk_compliance_hourly_review_caller.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_grc_caller_preserves_credentials_and_read_only_scope() -> None:
3636
opencode_secret = "$" + "{{ secrets.OPENCODE_APPROVE_TOKEN }}"
3737

3838
assert "\npermissions:\n contents: read\n" in workflow_scope
39-
assert "\n permissions:\n" not in jobs_scope
39+
assert "\n permissions:\n contents: read\n id-token: write\n" in jobs_scope
4040
assert f"PR_REVIEW_MERGE_TOKEN: {pr_review_secret}" in caller
4141
assert f"OPENCODE_APPROVE_TOKEN: {opencode_secret}" in caller
4242
assert "secrets: inherit" not in caller

0 commit comments

Comments
 (0)