Skip to content

Commit a283e37

Browse files
authored
Merge pull request #131 from GitHubSecurityLab/JarLob-patch-1
Enhance smoketest workflow with SHA output and checkout ref
2 parents 3c33f52 + 42278b6 commit a283e37

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/smoketest.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: github.event.issue.pull_request # Make sure the comment is on a PR
2121
outputs:
2222
allowed: ${{ steps.branch-deploy.outputs.continue }}
23+
sha: ${{ steps.branch-deploy.outputs.sha }}
2324
steps:
2425
- name: branch-deploy
2526
id: branch-deploy
@@ -48,9 +49,11 @@ jobs:
4849
- name: Checkout the PR
4950
env:
5051
PR_NUMBER: ${{ github.event.issue.number }}
52+
REF: ${{ needs.permission-check.outputs.sha }}
5153
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5254
run: |
5355
gh pr checkout $PR_NUMBER
56+
git checkout $REF
5457
5558
- name: Setup Python venv
5659
run: |

0 commit comments

Comments
 (0)