Skip to content

Commit 80df0cc

Browse files
authored
install canonical native merge verifier (#31)
1 parent 59a5ffd commit 80df0cc

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/verify.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,42 +31,26 @@ jobs:
3131
- run: go test ./...
3232
- run: go build ./...
3333

34-
auto-merge-sync:
34+
verify-sync-provenance:
3535
if: >-
3636
github.event_name == 'pull_request' &&
3737
github.event.pull_request.head.repo.full_name == github.repository &&
3838
startsWith(github.head_ref, 'sync/intelligence-flow-')
3939
needs: test
4040
runs-on: ubuntu-latest
4141
steps:
42-
- name: Create publisher token
43-
id: app-token
44-
uses: actions/create-github-app-token@v3
45-
with:
46-
client-id: ${{ vars.OPERATOR_STACK_PUBLISHER_APP_CLIENT_ID || vars.BOATSTACK_APP_CLIENT_ID }}
47-
private-key: ${{ secrets.OPERATOR_STACK_PUBLISHER_APP_PRIVATE_KEY || secrets.BOATSTACK_APP_PRIVATE_KEY }}
48-
owner: operatorstack
49-
repositories: interlock
50-
permission-contents: write
51-
permission-pull-requests: write
5242
- uses: actions/checkout@v4
5343
with:
5444
ref: ${{ github.event.pull_request.head.sha }}
5545
- name: Verify generated projection provenance
5646
env:
57-
APP_SLUG: ${{ steps.app-token.outputs.app-slug }}
5847
HEAD_BRANCH: ${{ github.head_ref }}
5948
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
6049
shell: bash
6150
run: |
6251
source_repo="$(jq -r '.source.repository' UPSTREAM.json)"
6352
source_commit="$(jq -r '.source.commit' UPSTREAM.json)"
6453
short="${source_commit:0:12}"
65-
[[ "$PR_AUTHOR" == "${APP_SLUG}[bot]" ]]
54+
[[ "$PR_AUTHOR" == "operator-stack-publisher[bot]" ]]
6655
[[ "$source_repo" == "operatorstack/intelligence-flow" ]]
6756
[[ "$HEAD_BRANCH" == "sync/intelligence-flow-$short" ]]
68-
- name: Merge verified sync PR
69-
env:
70-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
71-
PR_URL: ${{ github.event.pull_request.html_url }}
72-
run: gh pr merge "$PR_URL" --squash

0 commit comments

Comments
 (0)