Skip to content

Commit 0474dec

Browse files
committed
T8943: migrate mirror wrapper to App-ready uniform stub (rollout 1b Task 5)
Replace PAT-based secrets passthrough with uniform App-ready stub. Adds MIRROR_ENABLED opt-out guard and aligns to fleet-standard shape. Plan: ~/.claude/plans/2026-05-26-mirror-rollout-1b-revised.md Task 5 🤖 Generated by [robots](https://vyos.io)
1 parent bb79a96 commit 0474dec

1 file changed

Lines changed: 11 additions & 16 deletions

File tree

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# .github/workflows/pr-mirror-repo-sync.yml
2+
# DO NOT EDIT — managed by mirror-pipeline rollout.
3+
# To opt out: set vars.MIRROR_ENABLED=false in this repo's Actions variables.
14
name: PR Mirror and Repo Sync
25

36
on:
@@ -7,29 +10,21 @@ on:
710
workflow_dispatch:
811
inputs:
912
sync_branch:
10-
description: 'Branch to mirror'
1113
required: true
12-
default: 'current'
13-
type: choice
14-
options:
15-
- current
14+
type: string
1615

1716
permissions:
18-
pull-requests: write
1917
contents: write
18+
pull-requests: write
2019
issues: write
2120

2221
jobs:
23-
call-pr-mirror-repo-sync:
22+
call:
2423
if: |
25-
github.repository_owner == 'vyos' &&
26-
(
27-
github.event_name == 'workflow_dispatch' ||
28-
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
29-
)
24+
github.repository_owner == 'vyos'
25+
&& (github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch')
26+
&& vars.MIRROR_ENABLED != 'false'
3027
uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
3128
with:
32-
sync_branch: ${{ github.event.inputs.sync_branch || 'current' }}
33-
secrets:
34-
PAT: ${{ secrets.PAT }}
35-
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
29+
sync_branch: ${{ inputs.sync_branch || github.event.pull_request.base.ref }}
30+
secrets: inherit

0 commit comments

Comments
 (0)