diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d1f0d08..c303e21 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,11 @@ version: 2 + updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "npm" directory: "/" schedule: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index a68cbe7..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: CodeQL -on: - push: - branches: - - main - pull_request: - branches: - - main - schedule: - - cron: 22 2 * * 0 - workflow_dispatch: -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - security-events: write - strategy: - fail-fast: false - matrix: - language: - - javascript - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Setup Node.js environment - uses: actions/setup-node@v3.6.0 - with: - node-version: 16.x - architecture: x64 - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..0ed7b05 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,56 @@ +name: CodeQL + +on: + push: + branches: + - main + paths: + - config.example.js + - src/** + + pull_request: + branches: + - main + paths: + - config.example.js + - src/** + + schedule: + - cron: 0 8 1,15 * * + + workflow_dispatch: + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-22.04 + timeout-minutes: 10 + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: + - javascript + + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22.x + architecture: x64 + + - name: Setup CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/package.json b/package.json index 839ec68..1f753a6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "type": "module", "main": "src/index.js", "engines": { - "node": ">=18" + "node": ">=22" }, "dependencies": { "eris": "0.18.0", @@ -17,6 +17,7 @@ "utf-8-validate": "6.0.4" }, "contributors": [ - "spookerton (https://github.com/spookerton)" + "spookerton (https://github.com/spookerton)", + "Mucker (https://github.com/MuckerMayhem)" ] }