Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasReschke committed Nov 17, 2020
1 parent 9ce4e8a commit 138fe45
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/action.yml

This file was deleted.

1 change: 0 additions & 1 deletion foo.sarif

This file was deleted.

4 changes: 0 additions & 4 deletions test.php

This file was deleted.

36 changes: 26 additions & 10 deletions tests/ReportOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,29 +101,45 @@ public function testSarifReport(): void
'version' => '2.0.0',
'rules' => [
[
'id' => '205',
'name' => 'TaintedInput',
'id' => '246',
'name' => 'TaintedShell',
'shortDescription' => [
'text' => 'TaintedInput'
'text' => 'TaintedShell'
],
'properties' => [
'tags' => [
'security'
],
],
'help' => [
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedInput.md'),
'text' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedInput.md'),
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
'text' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
],
]
],
[
'id' => '245',
'name' => 'TaintedHtml',
'shortDescription' => [
'text' => 'TaintedHtml'
],
'properties' => [
'tags' => [
'security'
],
],
'help' => [
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),
'text' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),
],
],
]
]
],
'results' => [
[
'ruleId' => '205',
'ruleId' => '246',
'message' => [
'text' => 'Detected tainted shell'
'text' => 'Detected tainted shell code'
],
'level' => 'error',
'locations' => [
Expand Down Expand Up @@ -276,9 +292,9 @@ public function testSarifReport(): void
]
],
[
'ruleId' => '205',
'ruleId' => '245',
'message' => [
'text' => 'Detected tainted html'
'text' => 'Detected tainted HTML'
],
'level' => 'error',
'locations' => [
Expand Down

0 comments on commit 138fe45

Please sign in to comment.