From 0cf6ae3cd60bff800e4b14e40cd1c780ac60c913 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Sun, 22 Dec 2024 17:14:01 +0000 Subject: [PATCH 1/7] add myself as a contributor --- rubenbat.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 rubenbat.txt diff --git a/rubenbat.txt b/rubenbat.txt new file mode 100644 index 00000000..655ad670 --- /dev/null +++ b/rubenbat.txt @@ -0,0 +1,2 @@ +https://github.com/rubenbat + From aba3c47b9f809c3fa518456fdbe0f878b3765821 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Sun, 22 Dec 2024 17:39:26 +0000 Subject: [PATCH 2/7] B: recover file --- slander.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 slander.md diff --git a/slander.md b/slander.md new file mode 100644 index 00000000..710bcaac --- /dev/null +++ b/slander.md @@ -0,0 +1,5 @@ +# Breaking news + +MegaCorp CEO Lane enjoyed the live-action +MegaCorp CTO ... + From 2044e156c8355c33c508b7f6034084d07411a850 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Mon, 23 Dec 2024 08:01:47 +0000 Subject: [PATCH 3/7] C: update customers and partners --- customers/all.csv | 1 + orgs/partners.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/customers/all.csv b/customers/all.csv index 16dd7b21..5f55b58a 100644 --- a/customers/all.csv +++ b/customers/all.csv @@ -1 +1,2 @@ first_name,last_name,company,title +karson,yummy, intercooler,ceo diff --git a/orgs/partners.txt b/orgs/partners.txt index 88074863..f72fee8b 100644 --- a/orgs/partners.txt +++ b/orgs/partners.txt @@ -1 +1,3 @@ partner list +Boot.dev +TheStartup From cfb730f13f0758203a627d757db0bd4c956570e4 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Mon, 23 Dec 2024 08:03:51 +0000 Subject: [PATCH 4/7] D: add jayson to customers --- customers/all.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/customers/all.csv b/customers/all.csv index 16dd7b21..d34e271e 100644 --- a/customers/all.csv +++ b/customers/all.csv @@ -1 +1,2 @@ first_name,last_name,company,title +hayson,gross,htmz,contributor From 36f84b8efafb5339063ca5070f182bc78b6ebfb1 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Tue, 24 Dec 2024 06:38:21 +0000 Subject: [PATCH 5/7] G: Such inc J: added banned.csv L: added favorites --- customers/all.csv | 2 +- customers/banned.csv | 3 +++ customers/favs.md | 2 ++ orgs/partners.txt | 3 ++- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 customers/banned.csv create mode 100644 customers/favs.md diff --git a/customers/all.csv b/customers/all.csv index d34e271e..91ac7852 100644 --- a/customers/all.csv +++ b/customers/all.csv @@ -1,2 +1,2 @@ first_name,last_name,company,title -hayson,gross,htmz,contributor +carson,gross,htmx,creator diff --git a/customers/banned.csv b/customers/banned.csv new file mode 100644 index 00000000..5b13c1af --- /dev/null +++ b/customers/banned.csv @@ -0,0 +1,3 @@ +first_name,last_name,company,title +Ballan,Agrandian,Boots.lore,Protagonist +sam,ctrlman,closedai,ceo diff --git a/customers/favs.md b/customers/favs.md new file mode 100644 index 00000000..3dd49f5a --- /dev/null +++ b/customers/favs.md @@ -0,0 +1,2 @@ +# Favorite customers +* Jesse Pinkman, Heisenbert's Assistant diff --git a/orgs/partners.txt b/orgs/partners.txt index f72fee8b..1eaf4c02 100644 --- a/orgs/partners.txt +++ b/orgs/partners.txt @@ -1,3 +1,4 @@ partner list -Boot.dev +SalesInc 2 TheStartup +The lineUP From 12d0e23693cd8350f3cd52157b251f35ae3e7ac0 Mon Sep 17 00:00:00 2001 From: Ruben Batista Date: Wed, 25 Dec 2024 09:43:52 +0000 Subject: [PATCH 6/7] K: sensitive info scanning K: credit card scanning L: ssn numbers scanning M: phone numbers scanning --- scripts/scan.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/scan.sh b/scripts/scan.sh index f4d9eb22..eb6b1e04 100755 --- a/scripts/scan.sh +++ b/scripts/scan.sh @@ -1 +1,12 @@ -# TODO: write the script +echo "\n ==== SCANNIG FOR CREDIT CARD NUMBERS =====" +grep -rE --color=always '(\b[0-9]{4}[- ]?){3}[0-9]{4}\b' . --exclude-dir={.git} +echo "\n ==== CREDIT CARD SCAN COMPLETE =====" + +echo "\n ==== SCANNIG FOR SS NUMBERS =====" +grep -rE --color=always '\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b' . --exclude-dir={.git} +echo "\n ==== SOCIAL SECURITY NUMBERS SCAN COMPLETE =====" + +echo "\n ==== SCANNIG FOR PHONE NUMBERS =====" +grep -rE --color=always '\b[0-9]{3}-[0-9]{3}-[0-9]{4}\b' . --exclude-dir={.git} +grep -rE --color=always '\([0-9]{3}\) [0-9]{3}-[0-9]{4}' . --exclude-dir={.git} +echo "\n ==== PHONE NUMBERS SCAN COMPLETE =====" From b490efd3c7830a31a31e51297784dc423555543d Mon Sep 17 00:00:00 2001 From: rubenba <36366390+rubenbat@users.noreply.github.com> Date: Fri, 27 Dec 2024 10:13:43 +0000 Subject: [PATCH 7/7] Create codeql.yml --- .github/workflows/codeql.yml | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..639141de --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,90 @@ +# 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 Advanced" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '28 15 * * 0' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # 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. + + # 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 + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"