Skip to content

Bug: Checkout settings only apply to the agents job of the AW run #33649

@jitran

Description

@jitran

👋 Hello, I’ve been following https://github.github.com/gh-aw/reference/checkout/#custom-checkout-settings to ensure a full git checkout, i.e. fetch-depth: 0. In the safe-outputs job, just before it invokes the create_pull_request safe-output, it can’t find the required commits to create the pull request.

Looking at the Checkout repository step of the safe_outputs job, it actually performs a shallow clone with fetch-depth: 1.

It seems https://github.github.com/gh-aw/reference/checkout/#custom-checkout-settings applies to the agent job's checkout step only.

To get around this issue, I would run the following command after executing gh aw compile:

sed -i '' "s|fetch-depth: 1|fetch-depth: 0|g" .github/workflows/*.lock.yml after gh aw compile

Could you please look into this issue?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions