GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Replace dotnet/actions-create-pull-request with local composite action by joperezr · Pull Request #15964 · microsoft/aspire Conversation
Member
DescriptionReplace the external MotivationThe Changes
SecurityA threat model was performed on the composite action:
Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…out step and create-pull-request action.
|
There was an error while loading. Please reload this page.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15964Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15964" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR replaces the repository’s dependency on the external dotnet/actions-create-pull-request action with a local composite action that uses git + gh CLI, then updates the scheduled/dispatch workflows and docs to use the new local action.
Changes:
.github/actions/create-pull-request/action.yml to create/update PRs via gh.Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
.github/actions/create-pull-request/action.yml |
New composite action implementing commit/push and PR creation via git/gh. |
.github/workflows/generate-api-diffs.yml |
Switched PR creation step to use the local action. |
.github/workflows/generate-ats-diffs.yml |
Switched PR creation step to use the local action. |
.github/workflows/refresh-manifests.yml |
Switched PR creation step to use the local action. |
.github/workflows/refresh-typescript-sdks.yml |
Switched PR creation step to use the local action. |
.github/workflows/update-ai-foundry-models.yml |
Switched PR creation step to use the local action. |
.github/workflows/update-dependencies.yml |
Switched PR creation step to use the local action. |
.github/workflows/update-github-models.yml |
Switched PR creation step to use the local action. |
.github/workflows/release-github-tasks.yml |
Switched PR creation to local action and added branch-already-exists for pre-pushed branches. |
docs/release-process.md |
Updated “approved actions” list to reference the local action. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| EXISTING_PR=$(gh pr list --head "$BRANCH" --base "$BASE" --json number,url --jq '.[0] // empty') | ||
|
|
||
| if [ -n "$EXISTING_PR" ]; then | ||
| PR_NUMBER=$(echo "$EXISTING_PR" | jq -r '.number') | ||
| PR_URL=$(echo "$EXISTING_PR" | jq -r '.url') |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This step parses EXISTING_PR with jq, which adds an extra tool dependency. Since gh already supports --jq, you can avoid relying on jq being installed (especially on non-standard/self-hosted runners) by extracting number/url directly in the gh pr list call(s).
| EXISTING_PR=$(gh pr list --head "$BRANCH" --base "$BASE" --json number,url --jq '.[0] // empty') | |
| if [ -n "$EXISTING_PR" ]; then | |
| PR_NUMBER=$(echo "$EXISTING_PR" | jq -r '.number') | |
| PR_URL=$(echo "$EXISTING_PR" | jq -r '.url') | |
| PR_NUMBER=$(gh pr list --head "$BRANCH" --base "$BASE" --json number --jq '.[0].number // empty') | |
| if [ -n "$PR_NUMBER" ]; then | |
| PR_URL=$(gh pr list --head "$BRANCH" --base "$BASE" --json url --jq '.[0].url // empty') |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Won't fix. jq is pre-installed on all GitHub-hosted runners (ubuntu-latest, windows-latest, macos-latest) and is already used extensively in other steps of release-github-tasks.yml. The extra gh pr list call suggested would double the API requests for the existing-PR path. Not worth the churn for a non-issue.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…, body writing, docs prefix
|
Re-running the failed jobs in the CI workflow for this pull request because 3 jobs were identified as retry-safe transient failures in the CI run attempt.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🎬 CLI E2E Test Recordings — 56 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #24152394246 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Merging to unblock other workflows. Will address feedback in a follow up. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5a2acad
into
main
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.