From cd5be21e89f54f1519ca46bd1c95416afb2effbf Mon Sep 17 00:00:00 2001 From: Stuart Eggerton Date: Sun, 27 Feb 2022 20:00:13 +1100 Subject: [PATCH 1/5] Create codeql-analysis.yml --- .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 00000000..e8b053ad --- /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: '23 15 * * 5' + +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 From 1858b75b3738fa4780a229e32a5e0db112d04ace Mon Sep 17 00:00:00 2001 From: Stuart Eggerton Date: Wed, 2 Mar 2022 20:53:08 +1100 Subject: [PATCH 2/5] Create SECURITY.md --- SECURITY.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..7c03fe21 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,18 @@ +# Security Policy + +## Supported Versions + +Example versions + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :x: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Sample repo only. Please no reporting. There will be no responses. + +All vulnerabilities will be declined From 43ba7949c0469ea2aa08f7d51822503edfde9376 Mon Sep 17 00:00:00 2001 From: Stuart Eggerton Date: Fri, 4 Mar 2022 11:10:14 +1100 Subject: [PATCH 3/5] add yarn lock file to trigger dependabot example --- yarn.lock | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 yarn.lock diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 00000000..bf19d778 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,2 @@ +normalize-url@^4.3.0: + version "4.3.0" From 407aff960ba9dadf0ffe67e0ff50431d6c43dee5 Mon Sep 17 00:00:00 2001 From: Stuart Eggerton Date: Fri, 4 Mar 2022 15:44:04 +1100 Subject: [PATCH 4/5] add-dependabot.yml dssd --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..000d73ec --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" From 8b56d13907316dc3e907282a4575a8c8ee1b5af9 Mon Sep 17 00:00:00 2001 From: Stuart Eggerton Date: Fri, 4 Mar 2022 16:34:10 +1100 Subject: [PATCH 5/5] added secret_scanning.yml to exclude scanning foo/bar --- .github/secret_scanning.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/secret_scanning.yml diff --git a/.github/secret_scanning.yml b/.github/secret_scanning.yml new file mode 100644 index 00000000..3f238a4b --- /dev/null +++ b/.github/secret_scanning.yml @@ -0,0 +1,2 @@ +paths-ignore: + - "foo/bar/*.js" \ No newline at end of file