From 2d80734dbcf5315cfad34d4ed8987323274df70a Mon Sep 17 00:00:00 2001
From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>
Date: Tue, 15 Feb 2022 18:46:26 +0300
Subject: [PATCH 1/3] readme: update the badge link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5699fb5..6539f2e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Sern Handler
-
+
Sern automates and streamlines development your discord bot with new version compatibility and full customization.
From 779011a124ab76bbfb19a2a11889bf9255cbd360 Mon Sep 17 00:00:00 2001
From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>
Date: Tue, 15 Feb 2022 19:37:16 +0300
Subject: [PATCH 2/3] feat: Added SECURITY file & formatted some TypeScript
code
---
.github/SECURITY.md | 17 +++++++++++++++++
src/handler/sern.ts | 8 +++++++-
tsconfig.json | 40 ++++++++++++++++++++--------------------
3 files changed, 44 insertions(+), 21 deletions(-)
create mode 100644 .github/SECURITY.md
diff --git a/.github/SECURITY.md b/.github/SECURITY.md
new file mode 100644
index 0000000..9eb6238
--- /dev/null
+++ b/.github/SECURITY.md
@@ -0,0 +1,17 @@
+# Security Policy
+
+## Supported Versions
+
+Project is currently in development and is not yet ready to be used.
+
+| Version | Supported |
+| ------- | ------------------ |
+| 0.1.0 @ dev | :white_check_mark: |
+
+## Reporting a Vulnerability
+
+You can report a vulnerability by opening an issue on the [project's GitHub](https://github.com/SernHandler/Sern/issues) repository.
+
+Please provide as much information as possible when reporting a vulnerability. We are looking for information for, the affected version, and the steps to reproduce the vulnerability.
+
+Be patient, we are working on fixing all reported vulnerabilities.
diff --git a/src/handler/sern.ts b/src/handler/sern.ts
index 9b478d6..1d65856 100644
--- a/src/handler/sern.ts
+++ b/src/handler/sern.ts
@@ -3,7 +3,13 @@ import type * as Utils from './utilities/preprocessors/args';
import type { Arg, Context, Visibility, possibleOutput } from '../types/handler';
-import type { ApplicationCommandOptionData, Awaitable, Client, CommandInteraction, Message } from 'discord.js';
+import type {
+ ApplicationCommandOptionData,
+ Awaitable,
+ Client,
+ CommandInteraction,
+ Message
+} from 'discord.js';
import { Ok, Result, None, Some } from 'ts-results';
import { isBot, hasPrefix, fmt } from './utilities/messageHelpers';
diff --git a/tsconfig.json b/tsconfig.json
index ba13dc1..f35ae23 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,21 +1,21 @@
{
- "compilerOptions": {
- "experimentalDecorators": true,
- "resolveJsonModule": true,
- "target": "esnext",
- "module": "commonjs",
- "outDir": "dist",
- "rootDir": "src",
- "strict": true,
- "esModuleInterop": true,
- "noImplicitAny": true,
- "strictNullChecks": true,
- "importsNotUsedAsValues": "error",
- "skipLibCheck": true,
- "declaration": true,
- "forceConsistentCasingInFileNames": true,
- },
- "exclude": ["node_modules", "tests", "dist"],
- "include": ["src"],
- }
-
\ No newline at end of file
+ "compilerOptions": {
+ "experimentalDecorators": true,
+ "resolveJsonModule": true,
+ "target": "esnext",
+ "module": "commonjs",
+ "outDir": "dist",
+ "rootDir": "src",
+ "strict": true,
+ "esModuleInterop": true,
+ "noImplicitAny": true,
+ "strictNullChecks": true,
+ "importsNotUsedAsValues": "error",
+ "moduleResolution": "node",
+ "skipLibCheck": true,
+ "declaration": true,
+ "forceConsistentCasingInFileNames": true,
+ },
+ "exclude": ["node_modules", "tests", "dist"],
+ "include": ["src"],
+}
\ No newline at end of file
From 7012da60530c2b0b5d8cc97b417a80cd8031f51f Mon Sep 17 00:00:00 2001
From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>
Date: Tue, 15 Feb 2022 19:38:43 +0300
Subject: [PATCH 3/3] feat: CodeQL
---
.github/workflows/codeql-analysis.yml | 70 +++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 .github/workflows/codeql-analysis.yml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..c1a0d34
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,70 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [ main ]
+ schedule:
+ - cron: '37 20 * * 4'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'javascript' ]
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v1
+
+ # âšī¸ Command-line programs to run using the OS shell.
+ # đ https://git.io/JvXDl
+
+ # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
+ # and modify them (or add more) to build your code if your project
+ # uses a compiled language
+
+ #- run: |
+ # make bootstrap
+ # make release
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1