Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: fix checkout of the code on podvm #1591

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

wainersm
Copy link
Member

As currently implemented on builder/binaries/podvm workflows, the actions/checkout@v3 will checkout the code based on GITHUB_SHA. When used with the pull_request_target event (which is the case of the tests for libvirt on pull request), GITHUB_SHA is the SHA of the base branch but we are interested on the SHA of the head on the pull request branch (i.e. github.event.pull_request.head.sha).

As currently implemented on builder/binaries/podvm workflows, the
actions/checkout@v3 will checkout the code based on GITHUB_SHA. When
used with the pull_request_target event (which is the case of the tests
for libvirt on pull request), GITHUB_SHA is the SHA of the base branch
but we are interested on the SHA of the head on the pull request branch
(i.e. github.event.pull_request.head.sha).

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
@wainersm wainersm merged commit eb1b368 into confidential-containers:main Nov 21, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants