Unrecognized Github Actions Secret Context
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github-actions, typescript, vscode
Rechercherichtung
Beginne damit, die Warnung mit der bereitgestellten Jobs-YAML, einer Umgebung namens TWITCH-DOWNLOADER und den beiden im Workflow referenzierten Umgebungsgeheimnissen zu reproduzieren. Verfolge nach, wie die GitHub Actions Extension Geheimnisse und den Umgebungskontext validiert; abgeschlossen ist die Aufgabe, wenn die Umgebungsgeheimnisse ohne eine missing-or-undefined-Warnung erkannt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
- I have a GitHub Actions workflow, VSCode recommended me the Extension.
- And i use the Environment Feature for GitHub Action Secrets.
- This is not recognized by the Extension,
- even that the Environment Secrets works when i let the Action run.
- Even more frustrating:
- there seems to be no option to ignore or comment out that warning that the secret isn't valid
- we need an option to ignore that if the Extension fails to read the environment context
To Reproduce
Steps to reproduce the behavior:
- The beginning of the Jobs YAML:
jobs:
test:
runs-on: ubuntu-latest
environment: TWITCH-DOWNLOADER
...
- The Step that Uses the Secrets:
- name: Schreibe Secrets in .env-Datei
run: |
echo "TWITCH_CLIENT_ID=${{ secrets.TWITCH_CLIENT_ID }}" >> .env
echo "TWITCH_CLIENT_SECRET=${{ secrets.TWITCH_CLIENT_SECRET }}" >> .env
The Repo itself private, but i guess the error is easy to reproducible with
- create a repo
- creating a environment with that name (in https://github.com/(user)/(repo)/settings/secrets/actions)
- creating 2 Secrets named like that in that environment
- creating a github action yaml file with just that step above
- Save
- The Yaml loaded into VSCode with the GitHub Actions Extension running
X the Secrets will be recognized as missing or not defined X
Expected behavior
To recognize the Environment and the Secrets in there
- 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 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
github/vscode-github-actions#630 ·
-
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 ·
Alle Issues in github/vscode-github-actions
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
mksglu/context-mode#1200 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
anthropics/claude-code#96687 ·
-
good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
AOSSIE-Org/DebateAI#582 · 2 Kommentare ·