summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 18:12:58 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 18:49:18 +0900
commit10a80d9dc44146f910fb01240a818aa5809e6516 (patch)
tree6a43ba9f29fc080c2ce1717fad3f201dd207f3bf /.github
parentdb0a4c8923e0e084c7d757d132a83fc9c8431633 (diff)
downloadruby-10a80d9dc44146f910fb01240a818aa5809e6516.tar.gz
Ignore test case for Kernel and IO methods
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql-analysis.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 00a0aad885..b7ddb928dc 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -78,3 +78,26 @@ jobs:
uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5 # v2.2.5
with:
category: "/language:${{matrix.language}}"
+ upload: False
+ output: sarif-results
+
+ - name: filter-sarif
+ uses: advanced-security/filter-sarif@v1
+ with:
+ patterns: |
+ +**/*.rb
+ -test/ruby/test_io.rb:rb/non-constant-kernel-open
+ -test/open-uri/test_open-uri.rb:rb/non-constant-kernel-open
+ -test/open-uri/test_ssl.rb:rb/non-constant-kernel-open
+ -spec/ruby/core/io/binread_spec.rb:rb/non-constant-kernel-open
+ -spec/ruby/core/io/readlines_spec.rb:rb/non-constant-kernel-open
+ -spec/ruby/core/io/foreach_spec.rb:rb/non-constant-kernel-open
+ -spec/ruby/core/io/write_spec.rb:rb/non-constant-kernel-open
+ input: sarif-results/${{ matrix.language }}.sarif
+ output: sarif-results/${{ matrix.language }}.sarif
+ if: ${{ matrix.language == 'ruby' }}
+
+ - name: Upload SARIF
+ uses: github/codeql-action/upload-sarif@v2
+ with:
+ sarif_file: sarif-results/${{ matrix.language }}.sarif