Skip to content

The same commit at all jobs of the workflow triggered by PR events #678

@alexey-igrychev

Description

@alexey-igrychev

When a workflow is triggered by a PR event checkout action uses specific reference refs/pull/<PR_ID>/merge. This reference is not persistent and updated automatically when the base or PR branch is changed. Thus, there is no way to guarantee that all jobs will be run with the same commit and that a workflow is reproducible.

What do you think the action should solve this problem relies on immutable values of the workflow context (context.payload.pull_request.base.sha, context.payload.pull_request.head.sha) or this problem should be solved at the CI level?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions