Skip to content

Commit f17b007

Browse files
authored
Fix remaining CodeQL findings: add path classifiers and fix cert validity (#1619)
- Add path_classifiers (generated, test) to CodeQL.yml for belt-and-suspenders exclusion of third-party php-sdk and test code - Fix mock_tds_server.py openssl cert validity from 365 to 30 days to resolve leap year CodeQL alert
1 parent 3c72202 commit f17b007

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CodeQL.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
path_classifiers:
2+
generated:
3+
- "buildscripts/php-sdk"
4+
test:
5+
- "test"
6+
17
queries:
28
# Exclude all external PHP SDK source code
39
- exclude:

test/tools/mock_tds_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def generate_self_signed_cert(cert_path, key_path):
13041304
"openssl", "req", "-x509", "-newkey", "rsa:2048",
13051305
"-keyout", key_path,
13061306
"-out", cert_path,
1307-
"-days", "365",
1307+
"-days", "30",
13081308
"-nodes",
13091309
"-subj", "/CN=localhost",
13101310
],

0 commit comments

Comments
 (0)