Skip to content

Commit 49d826d

Browse files
committed
fix(ci): set fork eval status on approval label
1 parent 7259a84 commit 49d826d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/eval-skill-fork.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,21 @@ For security reasons, this workflow was updated to not execute untrusted code fr
7070
3. Reviewing the results and adding the \`eval-skill-passed\` label if successful
7171

7272
See [GitHub Security Lab: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) for more information about this security issue."
73+
74+
mark-manual-review-passed:
75+
name: Mark fork eval as passed
76+
if: >-
77+
github.event.action == 'labeled'
78+
&& github.event.label.name == 'eval-skill-passed'
79+
&& github.event.pull_request.head.repo.fork == true
80+
runs-on: ubuntu-latest
81+
steps:
82+
- name: Post success commit status
83+
env:
84+
GH_TOKEN: ${{ github.token }}
85+
run: |
86+
SHA="${{ github.event.pull_request.head.sha }}"
87+
gh api "repos/${{ github.repository }}/statuses/$SHA" \
88+
-f state="success" \
89+
-f context="eval-skill/fork" \
90+
-f description="Manual fork PR skill evaluation approved by maintainer"

0 commit comments

Comments
 (0)