From d10de8abf71e2f3f607bff6706a3afbca8d50c5a Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Sun, 19 Apr 2026 23:33:45 -0700 Subject: [PATCH] CI/CD improvements for codeql --- .github/codeql/codeql-config.yml | 10 +++++++++ .github/workflows/all-quality.yml | 3 +++ .github/workflows/codeql.yml | 35 +++++++++++++++++++++++++++++++ .github/workflows/publish-aur.yml | 3 +++ 4 files changed, 51 insertions(+) create mode 100644 .github/codeql/codeql-config.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 0000000..aee2db0 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,10 @@ +name: "RemoteTerm CodeQL config" + +# Exclude rules that flag intentional design decisions: +# - AES-ECB is required by the MeshCore radio protocol wire format +# - Repeater/room passwords are not meaningfully sensitive secrets +query-filters: + - exclude: + id: py/weak-cryptographic-algorithm + - exclude: + id: js/clear-text-storage-of-sensitive-data diff --git a/.github/workflows/all-quality.yml b/.github/workflows/all-quality.yml index c30d3de..c98cebe 100644 --- a/.github/workflows/all-quality.yml +++ b/.github/workflows/all-quality.yml @@ -4,6 +4,9 @@ on: push: pull_request: +permissions: + contents: read + jobs: backend-checks: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..895cd9d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "0 6 * * 1" + +permissions: + contents: read + security-events: write + +jobs: + analyze: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: [javascript-typescript, python] + steps: + - uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + config-file: .github/codeql/codeql-config.yml + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index 4902f7a..0479c99 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -25,6 +25,9 @@ concurrency: group: publish-aur cancel-in-progress: false +permissions: + contents: read + jobs: publish-aur: runs-on: ubuntu-latest