False positive missing-required-inputs for app_location when action: "close" in Azure Static Web Apps deploy
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 58/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- github-actions, typescript
- Bereich
- developer-experience
Rechercherichtung
Beginne damit, die GitHub-Actions-Eingabevalidierung zu lokalisieren, die die action.yml von Azure/static-web-apps-deploy@v1 liest, und reproduziere den hier gezeigten close_pull_request_job-Workflow. Die Arbeit ist abgeschlossen, wenn action: "close" app_location nicht mehr als fehlend meldet, während das Upload-Muster weiterhin seine erforderlichen Eingaben validiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Bug report
Describe the bug
The extension reports a missing-required-inputs error for app_location on the
close_pull_request_job pattern recommended by Azure Static Web Apps. The workflow
runs successfully in CI — the error is a false positive.
Azure/static-web-apps-deploy@v1 marks app_location as required: true in its
action.yml, but the field is only meaningful when action: "upload". When
action: "close", the action ignores app_location entirely and completes without it.
Steps to reproduce
Use the standard close-PR job that Azure's own onboarding wizard generates, with GitHub Actions extension installed:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/"
#api_location: "api"
output_location: "dist"
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: "close"
- Vorherrschende Sprache
- TypeScript
- Sterne
- 661
- Forks
- 214
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/vscode-github-actions
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
github/vscode-github-actions#627 · 1 Reaktion ·
-
long work Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
github/vscode-github-actions#628 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
github/vscode-github-actions#625 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
github/vscode-github-actions#621 · 3 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 50/100
github/vscode-github-actions#619 ·
Alle Issues in github/vscode-github-actions
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
fil-donadoni/tolaria#4409 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
corsairdev/corsair#1764 ·