Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Test vulns #6

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
1 change: 1 addition & 0 deletions src/DemoAPI/DemoAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
</ItemGroup>

Expand Down
11 changes: 11 additions & 0 deletions src/DemoFrontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/DemoFrontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@angular/platform-browser": "^14.1.0",
"@angular/platform-browser-dynamic": "^14.1.0",
"@angular/router": "^14.1.0",
"json-schema": "^0.3.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
Expand Down
6 changes: 6 additions & 0 deletions src/DemoFrontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ import { Component } from '@angular/core';
})
export class AppComponent {
title = 'DemoFrontend';
discordApiToken = '8dyfuiRvqFvVc3RRr_edRk-fz__JItpP'; // Todo: Remove this later, this is just for testing purposes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id discord-client-secret in commit 4430d55.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 4430d55e5ddd7e3f333a4947a588e34938c3216c:src/DemoFrontend/src/app/app.component.ts:discord-client-secret:10 >> .gitleaksignore


endsWith(x: string, y: string) {
let index = x.lastIndexOf(y);
return x.lastIndexOf(y) === x.length - y.length;
}
}