Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
e8e2a2e
Potential fix for code scanning alert no. 1232
austenstone Jul 3, 2025
ae95aa0
Merge refs/heads/alert-autofix-1232 into autofixes
austenstone Jul 3, 2025
2683b89
Potential fix for code scanning alert no. 1446
austenstone Jul 3, 2025
201d94a
Merge refs/heads/alert-autofix-1446 into autofixes
austenstone Jul 3, 2025
8cc41c4
Potential fix for code scanning alert no. 1445
austenstone Jul 3, 2025
2d2fefb
Merge refs/heads/alert-autofix-1445 into autofixes
austenstone Jul 3, 2025
307cbbc
Potential fix for code scanning alert no. 1444
austenstone Jul 3, 2025
9ea71a9
Merge refs/heads/alert-autofix-1444 into autofixes
austenstone Jul 3, 2025
ddbe5b9
Potential fix for code scanning alert no. 1443
austenstone Jul 3, 2025
99f311d
Merge refs/heads/alert-autofix-1443 into autofixes
austenstone Jul 3, 2025
6705874
Potential fix for code scanning alert no. 1442
austenstone Jul 3, 2025
d3efbaa
Merge refs/heads/alert-autofix-1442 into autofixes
austenstone Jul 3, 2025
495b07d
Potential fix for code scanning alert no. 1441
austenstone Jul 3, 2025
910de36
Merge refs/heads/alert-autofix-1441 into autofixes
austenstone Jul 3, 2025
2b3ee62
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
bd26e9d
Merge refs/heads/alert-autofix-1232-f5253678 into autofixes
austenstone Jul 4, 2025
4301e6a
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
ffad543
Merge refs/heads/alert-autofix-1446-7ad72fbf into autofixes
austenstone Jul 4, 2025
581994b
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
a28c938
Merge refs/heads/alert-autofix-1445-4778e781 into autofixes
austenstone Jul 4, 2025
bd63acc
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
291d37c
Merge refs/heads/alert-autofix-1444-45027d99 into autofixes
austenstone Jul 4, 2025
545e0cb
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
039ab8b
Merge refs/heads/alert-autofix-1443-1fccdfbe into autofixes
austenstone Jul 4, 2025
7be9d18
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
050f235
Merge refs/heads/alert-autofix-1442-e845ff0d into autofixes
austenstone Jul 4, 2025
77acd71
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
57ec90f
Merge refs/heads/alert-autofix-1441-a62f47d3 into autofixes
austenstone Jul 4, 2025
1403557
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
08b1d3a
Merge refs/heads/alert-autofix-1232-72648932 into autofixes
austenstone Jul 4, 2025
dc93621
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
3e1e0fc
Merge refs/heads/alert-autofix-1446-4d2ad72b into autofixes
austenstone Jul 4, 2025
45de2c9
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
ce3d38c
Merge refs/heads/alert-autofix-1445-77c92602 into autofixes
austenstone Jul 4, 2025
835e874
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
7b13e53
Merge refs/heads/alert-autofix-1444-c14648b2 into autofixes
austenstone Jul 4, 2025
856358f
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
a9c255e
Merge refs/heads/alert-autofix-1443-373cd1de into autofixes
austenstone Jul 4, 2025
19373c1
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
586dbc7
Merge refs/heads/alert-autofix-1442-239b34fa into autofixes
austenstone Jul 4, 2025
927f2c3
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
c7c2ab2
Merge refs/heads/alert-autofix-1441-16f7a52c into autofixes
austenstone Jul 4, 2025
8b4f360
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
0c5ac8e
Merge refs/heads/alert-autofix-1232-03a14745 into autofixes
austenstone Jul 4, 2025
d0bd3f9
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
bf38b1c
Merge refs/heads/alert-autofix-1446-038ea934 into autofixes
austenstone Jul 4, 2025
6d7dbcd
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
3e98a3b
Merge refs/heads/alert-autofix-1445-1d850d48 into autofixes
austenstone Jul 4, 2025
0c02dca
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
9612547
Merge refs/heads/alert-autofix-1444-b8b12b02 into autofixes
austenstone Jul 4, 2025
a2f2c98
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
3f14185
Merge refs/heads/alert-autofix-1443-6fde4a38 into autofixes
austenstone Jul 4, 2025
9b55dd6
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
de61a74
Merge refs/heads/alert-autofix-1442-c4cf0f08 into autofixes
austenstone Jul 4, 2025
6f97eb2
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
24d4066
Merge refs/heads/alert-autofix-1441-66735cfb into autofixes
austenstone Jul 4, 2025
cf616e5
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
1f835a7
Merge refs/heads/alert-autofix-1232-6127c91c into autofixes
austenstone Jul 4, 2025
a964383
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
ab8f931
Merge refs/heads/alert-autofix-1446-c3dbdfde into autofixes
austenstone Jul 4, 2025
d2e5f1c
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
0e058c4
Merge refs/heads/alert-autofix-1445-e13f86f3 into autofixes
austenstone Jul 4, 2025
22ae146
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
3fc2994
Merge refs/heads/alert-autofix-1444-3c6ecdae into autofixes
austenstone Jul 4, 2025
9fe6a7e
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
16b547f
Merge refs/heads/alert-autofix-1443-05219382 into autofixes
austenstone Jul 4, 2025
d645c49
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
814e29e
Merge refs/heads/alert-autofix-1442-fdc21a9b into autofixes
austenstone Jul 4, 2025
152b33b
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
ee1a671
Merge refs/heads/alert-autofix-1441-d087b57e into autofixes
austenstone Jul 4, 2025
6cbd121
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
e879d04
Merge refs/heads/alert-autofix-1232-cb81f912 into autofixes
austenstone Jul 4, 2025
c1f2e26
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
0eb33ab
Merge refs/heads/alert-autofix-1446-a0f613fa into autofixes
austenstone Jul 4, 2025
ea21904
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
8a3f7d7
Merge refs/heads/alert-autofix-1445-4162c84f into autofixes
austenstone Jul 4, 2025
4f6b9ec
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
7c3725f
Merge refs/heads/alert-autofix-1444-91d5a70d into autofixes
austenstone Jul 4, 2025
1cb943d
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
27b2099
Merge refs/heads/alert-autofix-1443-9d6f0364 into autofixes
austenstone Jul 4, 2025
aed7515
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
46021d9
Merge refs/heads/alert-autofix-1442-6b6b6387 into autofixes
austenstone Jul 4, 2025
d63c6ab
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
515c97a
Merge refs/heads/alert-autofix-1441-ad3416f7 into autofixes
austenstone Jul 4, 2025
5582f1a
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
536d0b1
Merge refs/heads/alert-autofix-1232-4060dd5b into autofixes
austenstone Jul 4, 2025
bdbdac4
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
bbe1ab7
Merge refs/heads/alert-autofix-1446-9bd3f650 into autofixes
austenstone Jul 4, 2025
3a6ae9c
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
e1829ae
Merge refs/heads/alert-autofix-1445-b722f534 into autofixes
austenstone Jul 4, 2025
97ded50
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
4368c2d
Merge refs/heads/alert-autofix-1444-46e4ea76 into autofixes
austenstone Jul 4, 2025
4278edf
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
980082d
Merge refs/heads/alert-autofix-1443-3ed482d7 into autofixes
austenstone Jul 4, 2025
f2cb4ef
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
e6d7886
Merge refs/heads/alert-autofix-1442-83c7233f into autofixes
austenstone Jul 4, 2025
55f775a
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
18099dc
Merge refs/heads/alert-autofix-1441-8f743acd into autofixes
austenstone Jul 4, 2025
8258ebc
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
e440831
Merge refs/heads/alert-autofix-1232-a70b2364 into autofixes
austenstone Jul 4, 2025
d86ac9e
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
f7dc836
Merge refs/heads/alert-autofix-1446-c68e35df into autofixes
austenstone Jul 4, 2025
3e2061f
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
27e8c33
Merge refs/heads/alert-autofix-1445-db6f922f into autofixes
austenstone Jul 4, 2025
23bbeb3
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
3fb38d6
Merge refs/heads/alert-autofix-1444-9f39f437 into autofixes
austenstone Jul 4, 2025
3b01d67
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
bbf8227
Merge refs/heads/alert-autofix-1443-4adb0410 into autofixes
austenstone Jul 4, 2025
7842f9a
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
e41fe82
Merge refs/heads/alert-autofix-1442-bb07c4c0 into autofixes
austenstone Jul 4, 2025
f87795d
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
a1e05ee
Merge refs/heads/alert-autofix-1441-c86020c7 into autofixes
austenstone Jul 4, 2025
c6df98b
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
8c99542
Merge refs/heads/alert-autofix-1232-44067ced into autofixes
austenstone Jul 4, 2025
ad95101
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
35ee0df
Merge refs/heads/alert-autofix-1446-538753de into autofixes
austenstone Jul 4, 2025
8823e5a
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
5c6ebbd
Merge refs/heads/alert-autofix-1445-bbe1dad6 into autofixes
austenstone Jul 4, 2025
0bdd32e
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
854154d
Merge refs/heads/alert-autofix-1444-d5439d3a into autofixes
austenstone Jul 4, 2025
77e8e74
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
cdee725
Merge refs/heads/alert-autofix-1443-393b45b6 into autofixes
austenstone Jul 4, 2025
cdb6279
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
01c01ec
Merge refs/heads/alert-autofix-1442-2f633e18 into autofixes
austenstone Jul 4, 2025
5afc027
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
b9574a9
Merge refs/heads/alert-autofix-1441-cdd34ccb into autofixes
austenstone Jul 4, 2025
117ba53
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
6842709
Merge refs/heads/alert-autofix-1232-2d029cef into autofixes
austenstone Jul 4, 2025
72704dd
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
958bdb8
Merge refs/heads/alert-autofix-1446-8846a857 into autofixes
austenstone Jul 4, 2025
cf19c59
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
12609ca
Merge refs/heads/alert-autofix-1445-231f581d into autofixes
austenstone Jul 4, 2025
c1cead7
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
706a317
Merge refs/heads/alert-autofix-1444-a10cd3a7 into autofixes
austenstone Jul 4, 2025
bbf8afa
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
e4997df
Merge refs/heads/alert-autofix-1443-c5593879 into autofixes
austenstone Jul 4, 2025
d84fb30
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
5e628c8
Merge refs/heads/alert-autofix-1442-0f25a5f9 into autofixes
austenstone Jul 4, 2025
f17d687
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
3b6be9d
Merge refs/heads/alert-autofix-1441-66844cfd into autofixes
austenstone Jul 4, 2025
0129a08
Potential fix for code scanning alert no. 1232
austenstone Jul 4, 2025
f316df2
Merge refs/heads/alert-autofix-1232-346c0f81 into autofixes
austenstone Jul 4, 2025
99292b5
Potential fix for code scanning alert no. 1446
austenstone Jul 4, 2025
02c5db8
Merge refs/heads/alert-autofix-1446-3f6eba41 into autofixes
austenstone Jul 4, 2025
a5e55a6
Potential fix for code scanning alert no. 1445
austenstone Jul 4, 2025
9b1e737
Merge refs/heads/alert-autofix-1445-46f47584 into autofixes
austenstone Jul 4, 2025
62989f2
Potential fix for code scanning alert no. 1444
austenstone Jul 4, 2025
b68b06e
Merge refs/heads/alert-autofix-1444-154313e9 into autofixes
austenstone Jul 4, 2025
97fbbaf
Potential fix for code scanning alert no. 1443
austenstone Jul 4, 2025
7b4d799
Merge refs/heads/alert-autofix-1443-28f28d08 into autofixes
austenstone Jul 4, 2025
3c8b310
Potential fix for code scanning alert no. 1442
austenstone Jul 4, 2025
48e795f
Merge refs/heads/alert-autofix-1442-9d7a1035 into autofixes
austenstone Jul 4, 2025
a05a29b
Potential fix for code scanning alert no. 1441
austenstone Jul 4, 2025
9d5fec0
Merge refs/heads/alert-autofix-1441-52ceb685 into autofixes
austenstone Jul 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Docker Deploy GHCR

permissions:
contents: read
packages: write

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Frontend

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Lint

permissions:
contents: read

on:
push:
branches:
Expand Down
16 changes: 13 additions & 3 deletions backend/src/controllers/survey.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ class SurveyController {
async updateSurveyGitHub(req: Request, res: Response): Promise<void> {
let survey: SurveyType;
try {
const _survey = await surveyService.updateSurvey({
...req.body,
const sanitizedBody = {
id: req.body.id,
userId: req.body.userId,
org: req.body.org,
repo: req.body.repo,
prNumber: req.body.prNumber,
usedCopilot: req.body.usedCopilot,
percentTimeSaved: req.body.percentTimeSaved,
reason: req.body.reason,
timeUsedFor: req.body.timeUsedFor,
kudos: req.body.kudos,
hits: 0,
status: 'completed'
});
};
const _survey = await surveyService.updateSurvey(sanitizedBody);
if (!_survey) throw new Error('Survey not found');
survey = _survey;
res.status(201).json(survey);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/services/survey.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SurveyService {
throw new Error('Invalid survey data provided');
}
const Survey = mongoose.model('Survey');
const result = await Survey.updateOne({ id: survey.id }, { $set: survey });
const result = await Survey.updateOne({ id: { $eq: survey.id } }, { $set: survey });

// Check if the update modified any document.
if (result.modifiedCount === 0) {
Expand Down
Loading