Граф коммитов

689 Коммитов

Автор SHA1 Сообщение Дата
Dan Fiedler f4aa2f7d42
add publish to VS marketplace and GitHub (#656)
* add publish to VS marketplace and GitHub
2024-11-12 14:33:03 -05:00
Dan Fiedler ad46ed138c
add release vs prerelease publishing (#655) 2024-11-06 18:29:34 -05:00
Dan Fiedler e1d98d3fcf
add vscode ext release to github and marketplace (#653)
* add vscode ext release to github and marketplace
2024-11-04 13:26:49 -05:00
Dan Fiedler 10b85ce690
add publish to nuget and GitHub (#652) 2024-11-01 16:14:49 -04:00
Dan Fiedler 04f19a941a
add release stage with new signing (#650)
* add release stage and signing to devskim-cl,  VS pipeline, VSCode pipeline
2024-11-01 09:31:38 -04:00
Gabe Stocco fb82d09b14
Fix rewriting files with no issues to suppress (#632)
* Fix rewriting files with no issues to suppress

Fixes an issue where the Suppress command would rewrite a file essentially as is (but potentially change whitespace) even if all the detected issues in the file were filtered out by the rule filter.

* Respect original newline characters when adding suppression comments

* Rewrite edge case handling for placing multi line comments at the start of the line when the line ends with `\` and might be a multi-line continuation to avoid putting the comment inside the multiline string.

* Add tests cases for fixes

* Fix readme typo from #628
2024-08-27 09:11:26 -07:00
Justin Schneider 7e0834133f
Add exclusion for modern InternalsVisibleTo in SDK-style projects (#630)
* Add exclusion for modern InternalsVisibleTo in SDK-style projects

* Update secrets.json test

* Update Changelog.md
2024-08-26 10:53:32 -07:00
Gabe Stocco ba3d17aa1a
Fix #620 (#624)
* Fix #620

* Update Changelog.md
2024-07-12 10:41:43 -07:00
Gabe Stocco f3bfd4d83b
Convert release pipelines (#621)
* Convert release pipelines

* Update Changelog.md

* Comment out triggers
2024-06-26 11:53:37 -07:00
Dan Fiedler 7e034094d0
Add content for rule guidance containing "TO DO"s. (#617)
* Add guidance for weak random rule

* Add guidance for outdated TLS protocol

* Add guidance for XXE rule

* Add guidance for weak cipher mode rule

* Point disabled cert validation rules at complete guidance

* Add guidance for DPAPI entropy rule

* Use existing HTTPS guidance for Ruby rule

* Add guidance for strncat rule

* Add guidance for strncpy rule

* Add guidance for 3DES rule

* Add guidance for C gets rule

* Add guidance for C strcat rule

* Add guidance for C strcpy rule

* Add guidance for C malloc rule

* Add guidance for banned C function rule

* Add guidance for InitializeSecurityContext rule

* Add guidance for PowerShell restricted function rule

* Add guidance for NOT implementing MD5/SHA1 rule

* Add guidance for objective-c format string rule

* Add guidance for memcpy rule

* Point C++ TLS version rule to existing guidance

* Point .NET outdated SSL rule to general guidance

* Add guidance for seeding RNG with time rule

* Add guidance for mcrypt rules

* Add guidance for debug rule

* Add guidance for iOS uniqueIdentifier rule

* Add guidance for obj-c xss rule

* Add guidance for eval XSS rule

* Add guidance for hardcoded secret rule

* Add guidance for C FILE copy rule

* Add guidance for PHP file include rule

* Add guidance for ASPNET Controller rule

* Add guidance for iOS NSUserDefaults rule

* Add guidance for hashing time rule

* Remove optional encryption rule (applies to unknown tech?)

* Add test condition that guidance must have content

* Update changelog for guidance changes
2024-06-07 13:13:30 -04:00
Dan Fiedler 3e6a87ec8e
Add tests to identify rules with missing or incomplete guidance (#613)
* Add tests to identify rules with missing or incomplete guidance

* Also consider guidance with "TO DO" incomplete

* Point DES rules at same guidance

* Add guidance for .NET TLS config

* Add guidance for .NET Framework 4.7.2 rule

* Add guidance for .NET Core advisory 4021279

* Add guidance for Microsoft.IdentityModel.Tokens rule

* Add guidance for unsafe keyword rule

* Add guidance for JS setTimeout rule

* Add guidance for weak/broken hash algo rule

* Add guidance for disabling cert validation rule

* Add guidance for avoid $_REQUEST rule

* Add guidance for PHP XSS rule

* Add guidance for strlen rule

* Add guidance for Python datetime rule

* Add changelog for guidance changes

* Add debug info to guidance tests to troubleshoot CI

* Fix finding guidance for DevSkim CLI in CI
2024-05-23 16:12:31 -04:00
Gabe Stocco 76125aaabf
Fix PHP Request Rule (DS144886) Fix It Specification (#616)
* Fix PHP Request Rule Replacements

Fix #614.

* Update Changelog.md
2024-05-21 16:09:51 -07:00
Gabe Stocco ba39d7aba7
Migrate to New Code Sign Mechanism (#615)
* Update devskim-cli-release.yml

* Update devskim-visualstudio-release.yml

* Update devskim-vscode-release.yml

* Update Changelog.md
2024-05-09 10:44:30 -07:00
Gabe Stocco 6091cf616b
Pipeline Updates (#611)
* Migrate Pipelines to new Templates
2024-03-27 13:02:37 -07:00
Gabe Stocco 9dba5c6c1f
Fix Default Option Settings When Deserializing Options Json (#610)
* Fix Default Option Settings When Deserializing Options Json

OutputTextFormat and OutputFileFormat were defaulting to string.Empty when deserialized because the default set for instantiating differed from the default value used for command parsing.

* Update Changelog.md
2024-03-14 18:23:47 +00:00
Gabe Stocco 97454b35b2
Add Job Id to the Signed_Binaries pipeline artifact name (#609)
* Append Job Id and Attempt to Pipeline Signed Artifacts

If the pipeline fails during deployment the failed job cannot be rerun because this task will fail because the signed_binaries artifact already exists. However, the entire task also can't be re-run because the extensions have already been published by the time it hits this point. This PR adds a unique value so the failed job can be rerun in the case of temporary failures like API key rotations.

* Update Changelog.md

* Add IDs to the extension runs as well.
2024-03-05 16:38:31 +00:00
Gabe Stocco b08bf6e531
Updates to Populate Sarif Fields for GitHub Severity + Precision (#606)
* Update dependencies

* Improve Confidence Reporting

Adds Confidence Field to Issue Record
Sets Confidence to either Confidence of Pattern if specified, or confidence of overall rule if specified
Report Confidence and Severity in special Github sarif fields.
Add Confidence values to rules

* Update Guidance (#600)
Fixed typo
Tokens/keys in source code
DES->AES Guidance

* Update Changelog.md
---------

Co-authored-by: Cristián Rojas <injcristianrojas@gmail.com>
2024-02-29 14:49:02 -08:00
Gabe Stocco d08607cea8
Fix Pool and Image name declarations (#603)
* Fix Pool and Image name declarations

* Update Changelog.md

* Fix image name

* Update README.md

* Dependencies
2024-02-07 09:51:56 -08:00
Gabe Stocco bd77ec3492
Update Service Connection (#601)
* Update GitHub service connection for pipeline

* Update App Inspector dependency

* Update Changelog.md
2024-01-18 17:42:16 -08:00
Gabe Stocco 5b7d83e6c7
Remove trailing period after generic guidance uri. (#599)
* Remove trailing period after generic guidance uri.

* Update Changelog.md

* Update dependencies.
2024-01-08 14:57:40 -08:00
Gabe Stocco 935af10ad2
Move Github Release task to last item in CLI publish (#596)
* Move Github Release task to last item in CLI publish

Have been having issues with the github release task failing. It should run after the nuget release task to avoid missing publication to nuget.

* Update Changelog.md
2023-12-14 19:18:56 -08:00
Gabe Stocco bd092d9300
Build for .NET 8 and update dependencies (#595)
* Update to net 8

* Update dependencies
2023-12-07 11:44:58 -08:00
Gabe Stocco 3d813a3228
Update Dependencies (#592)
* Update Dependencies

* Ingest App Inspector fix for some xpath cases.
2023-11-28 16:13:32 -08:00
Gabe Stocco 792180d16a
Update omnisharp (#591)
* Update omnisharp

* Fixes for omnisharp update

* Update other dependencies
2023-10-11 10:03:01 -07:00
David Alcantar 607c9a5eda
Update to Latest Pipeline Templates (#590)
* Update devskim-cli-pr.yml

* Update Changelog.md

* Bump template version
2023-10-05 13:07:52 -07:00
Gabe Stocco c8c65ea813
Delete scripts directory (#587)
* Delete scripts directory

Remove advisory parser script fix #586

* Update Changelog.md

* Update dependencies

* Fix json formatting in rules
2023-09-18 07:23:11 -07:00
Maj Soklič 3c9f46a59c
Update Actions and runners (#585) 2023-09-11 20:08:18 -07:00
Gabe Stocco 1e79b24a91
Remove workaround for missing Sarif Schema (#583)
* Update dependencies

* Remove workaround for missing sarif schema as it is now available

* Fix ordering in suggested action source
2023-08-29 11:52:55 -07:00
Gabe Stocco 9713e84087
Switch HashSet to ConcurrentDictionary for VS Extension Fix Cache (#581) 2023-08-23 15:16:27 -07:00
Gabe Stocco fba56c26b8
Fix language definitions for rules in Random.json (#579) 2023-08-09 10:10:27 -07:00
Gabe Stocco 7a4db567c1
Reduce False Positives for HTTP detection Rule (#578)
* Exclude xmlnx:xsi

* Fix typo in self-test

* Update Changelog.md
2023-08-07 16:00:46 -07:00
Gabe Stocco e3d6c3bd52
Fix #576 (#577)
* Run Update Settings Generator Manually

Fix #576
Source Generation appears to have been failing on build for the update settings method resulting in the VS Extension not detecting any issues. Change to manually run the generation and explicitly include the otherwise would be generated source.

* Update Changelog.md
2023-08-04 17:00:56 -07:00
Gabe Stocco ed9da84756
Fix False Positives (#575) 2023-07-31 17:21:31 -07:00
Gabe Stocco 1d8a5e23c6
Fix handling enumerable equality in options configuration (#574) 2023-07-27 19:06:07 -07:00
Gabe Stocco 17b979d8e1
Update Dependencies (#572)
* Update Dependencies

* Update Changelog.md
2023-07-24 20:24:53 +00:00
Cristián Rojas bfae7d8554
Guidance completion: DS126858 (#569) 2023-07-24 13:15:27 -07:00
dependabot[bot] 87ad45b866
Bump semver from 7.3.4 to 7.5.3 in /DevSkim-VSCode-Plugin/client (#560) 2023-06-26 21:19:21 -07:00
Rob Jack Stewart 0350883b80
Remove scanWorkspace command from Extension (#557)
The scanWorkspace command was supposed to be remove during the bump to major version 1, but was missed.

Co-authored-by: Rob Stewart <robstewart@microsoft.com>
Co-authored-by: Gabe Stocco <98900+gfs@users.noreply.github.com>
2023-06-26 13:33:01 -07:00
Gabe Stocco 772a7dfd2c
Fix #554 (#559)
* Fix #554

Fixes an issue where we ensured that the .NET install tool had installed the proper version of .NET, but then we called the version of dotnet on the path to start the language server.

* Update Changelog.md
2023-06-26 09:51:47 -07:00
Andrew Trompler bc0091984b
Improving rule accuracy (#523) 2023-06-09 14:27:25 -07:00
David Alcantar 6f4918e700
Fix NuGet Package Multitarget (#550)
* Update Changelog.md
2023-06-06 11:45:46 -07:00
David Alcantar 554b354014
Fix pipeline trigger path excludes (#542) 2023-05-26 01:20:42 +00:00
Gabe Stocco 840e1fadff
Create Changelog.md (#537) 2023-05-25 20:19:47 +00:00
Gabe Stocco 9216c5fde2
Filter potentially duplicate fixes in sarif output (#534) 2023-05-25 04:58:47 +00:00
Gabe Stocco 95bfa6d982
Also catch case where the recommendation is empty string (#532)
* Try fix missing Help.Text parameter when Recommendation and Description are both empty

* More comprehensive fix
2023-05-25 00:53:57 +00:00
Gabe Stocco bd2e0f8bd3
Try fix missing Help.Text parameter when Recommendation and Description are both empty (#530) 2023-05-24 23:51:52 +00:00
Gabe Stocco fe966b3c00
Rev version to 1.0, remove alpha flag (#528)
* Rev version to 1.0, remove alpha flag

* Improve VS option description clarity

* Simplify pipeline triggers

* Adds Is Fixable to DevSkimRuleProcession to Ensure fixes are applicable before returning via analyze command

* Remove extra usings

* Clean up

---------

Co-authored-by: David Alcantar <50344095+daalcant@users.noreply.github.com>
2023-05-24 21:46:12 +00:00
Gabe Stocco 5b8f12a462
Add case insensitive modifier to Hash algorithm detections (#527) 2023-05-24 17:28:49 +00:00
Gabe Stocco 5b87deacf2
Use Comma Separated String values for VS Settings (#525)
* Update Directory.Build.props

* Try switch VS Options to comma separated strings rather than list<string>
2023-05-23 20:58:26 +00:00
Gabe Stocco 59d0b8e94b
Add API Documentation Publication to GitHub pages (#524) 2023-05-23 19:12:03 +00:00