diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8bf33697..f6a29e68 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,29 +10,68 @@ version: 2 updates: - - package-ecosystem: github-actions - cooldown: - default-days: 3 - include: ["*"] - directory: / - schedule: - interval: quarterly - time: "05:30" - timezone: "America/Detroit" - assignees: ["Nick2bad4u"] - allow: - # Allow both direct and indirect updates for all packages - - dependency-type: "all" - labels: - - "github-actions" - - "dependabot" - - "dependencies" - commit-message: - prefix: "[ci][skip-ci]" - prefix-development: "[ci][skip-ci]" - include: "scope" - groups: - github-actions: - applies-to: version-updates - patterns: - - "*" + - package-ecosystem: github-actions + cooldown: + default-days: 3 + include: ["*"] + directory: / + schedule: + interval: quarterly + time: "05:30" + timezone: "America/Detroit" + assignees: ["Nick2bad4u"] + allow: + # Allow both direct and indirect updates for all packages + - dependency-type: "all" + labels: + - "github-actions" + - "dependabot" + - "dependencies" + commit-message: + prefix: "[ci][skip-ci]" + prefix-development: "[ci][skip-ci]" + include: "scope" + groups: + github-actions: + applies-to: version-updates + patterns: + - "*" + + - package-ecosystem: npm + cooldown: + default-days: 3 + include: ["*"] + directory: / + schedule: + interval: quarterly + assignees: ["Nick2bad4u"] + versioning-strategy: increase + allow: + # Allow both direct and indirect updates for all packages + - dependency-type: "all" + ignore: + - dependency-name: "electron-builder" + versions: ["< 26.0.18"] + - dependency-name: "electron-builder-squirrel-windows" + versions: ["< 26.0.18"] + # Ignore local workspace dependencies completely + - dependency-name: "@shared/*" + - dependency-name: "file:*" + + labels: + - "npm" + - "dependabot" + - "dependencies" + commit-message: + prefix: "[dependency]" + prefix-development: "[dev-dependency][skip-ci]" + include: "scope" + groups: + npm-all: + applies-to: version-updates + patterns: + - "*" + # Exclude local packages from grouping + exclude-patterns: + - "@shared/*" + - "file:*" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..0580df1a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,78 @@ +# 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: "0 0 * * 1" + +permissions: + contents: read + +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 [ $supported-codeql-languages ] + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + + - name: Checkout repository + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0 + 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. + + # 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@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0 + + # â„šī¸ 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 the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0 + with: + category: "/language:${{matrix.language}}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db666e9b..fe3d8f7f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,7 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v8.38.0 + hooks: + - id: eslint