Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Allow to specify the relevant threat model when running a query

Offen
#4,027 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
typescript, vscode
Bereich
devtools, security

Rechercherichtung

Beginne damit, den Befehl CodeQL: Run Query on Selected Database und die Art und Weise zu überprüfen, wie die Option --threat-model der CLI für die Abfrageausführung bereitgestellt wird. Als erledigt gilt die Aufgabe, wenn die Erweiterung eine festgelegte Möglichkeit zur Auswahl oder Konfiguration des relevanten Bedrohungsmodells bietet und die resultierenden Abfrageergebnisse direkt in der IDE anzeigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement VSCode

Is your feature request related to a problem? Please describe.
The codeql CLI interface offers the option to specify a threat model by e.g. using the --threat-model local flag.
However, as far as I'm aware, there is not such feature in the IDE itself to configure the threat model.

Describe the solution you'd like
Either:

  • add a dropdown when running a query using CodeQL: Run Query on Selected Database where the user has to select the threat model every time they run a query
  • add a global config option to the plugin (could be problematic when different languages potentially support different threat models)
  • add a new CodeQL: Run Query on Selected Database with Thread Model option.
  • add a "Set Threat Model" for database command.

Describe alternatives you've considered
Run the query on the db using codeql database analyze yada yada yada --threat-model local.
However, looking at the result in SARIF isn't as nice as looking at the result of the CodeQL extension directly in the IDE.

Vorherrschende Sprache
TypeScript
Sterne
540
Forks
242
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
36

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/vscode-codeql

Alle Issues in github/vscode-codeql

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.