Skip to content

Commit db14f6d

Browse files
Merge pull request #1 from advanced-security/unit_tests
Restructured to have unit tests working
2 parents 4459b64 + 29e15e3 commit db14f6d

File tree

94 files changed

+190
-217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+190
-217
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
library: true
3-
name: sap-js/ui5-data-extension-pack
3+
name: sap-js/ui5-data-extensions-pack
44
version: 0.0.1
55
extensionTargets:
66
codeql/javascript-all: "*"
77
codeql/javascript-queries: "*"
88
dataExtensions:
9-
- ui5-data-extension.yaml
9+
- ui5-data-extensions.yml

.github/codeql/extensions/ui5-data-extension.yaml renamed to .github/codeql/extensions/ui5-data-extensions.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ extensions:
1616
pack: codeql/javascript-all
1717
extensible: sourceModel
1818
data:
19-
# sap.ui.commons.TextField.value
19+
# sap.ui.commons.TextField.value sap.ui.commons.TextField#getValue
2020
- ["sap/ui/commons/TextField", "Instance.Member[value]", "remote"]
21-
# sap.m.InputBase.value
21+
- ["sap/ui/commons/TextField", "Instance.Member[getValue].ReturnValue", "remote"]
22+
# sap.m.InputBase.value sap.m.InputBase#getValue
2223
- ["sap/m/InputBase", "Instance.Member[value]", "remote"]
23-
# sap.m.Input.value
24+
- ["sap/m/InputBase", "Instance.Member[getValue]", "remote"]
25+
# sap.m.SearchField.value sap.m.InputBase#getValue
26+
- ["sap/m/SearchField", "Instance.Member[value]", "remote"]
27+
- ["sap/m/SearchField", "Instance.Member[getValue]", "remote"]
28+
# sap.m.Input.value sap.m.Input#getValue()
2429
- ["sap/m/Input", "Instance.Member[value]", "remote"]
25-
# sap.m.Input#getValue()
2630
- ["sap/m/Input", "Instance.Member[getValue].ReturnValue", "remote"]
2731
# jQuery.sap.getUriParameters() return
2832
- ["global", "Member[jQuery].Member[sap].Member[getUriParameters].ReturnValue.Member[get]", "remote"]
@@ -36,8 +40,7 @@ extensions:
3640
- ["global", "Member[jQuery].Member[sap].Member[syncPost].ReturnValue", "remote"]
3741
# jQuery.sap.syncPostText() return
3842
- ["global", "Member[jQuery].Member[sap].Member[syncPostText].ReturnValue", "remote"]
39-
# UriParameters#get
40-
# UriParameters#getAll
43+
# UriParameters#get UriParameters#getAll
4144
- ["sap/base/util/UriParameters", "Member[fromQuery].ReturnValue.Member[get].ReturnValue", "remote"]
4245
- ["sap/base/util/UriParameters", "Member[fromQuery].ReturnValue.Member[getAll].ReturnValue", "remote"]
4346
- addsTo:

.github/workflows/codeql.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/codeql_queries.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL Queries"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "main" ]
9+
schedule:
10+
- cron: '39 12 * * 2'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: 'ubuntu-latest'
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
25+
# Initializes the CodeQL tools for scanning.
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v2
28+
with:
29+
languages: javascript
30+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
31+
queries: security-extended,./src
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v2

codeql-workspace.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
provide:
22
- "**/qlpack.yml"
3-
- "**/codeql-workspace.yml"

integration-tests/README.md

Lines changed: 0 additions & 27 deletions

integration-tests/codeql-workspace.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)