From bd3f260cecdb3169a7aeb9e150170853188284fe Mon Sep 17 00:00:00 2001 From: mahmoud karzoun <135722882+mkarson1997@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:08:48 +0300 Subject: [PATCH 1/3] security: add CodeQL analysis --- .github/workflows/codeql.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..92203db --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,32 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "53 4 * * 5" + +jobs: + analyze: + name: Analyze Python + permissions: + contents: read + security-events: write + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: python + queries: security-extended + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:python" From 640ab83b2859aeca636a315105084c2f2044db2a Mon Sep 17 00:00:00 2001 From: mahmoud karzoun <135722882+mkarson1997@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:08:57 +0300 Subject: [PATCH 2/3] security: add Dependabot for GitHub Actions --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8004983 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 5 From b76d71cc69b1334c1e99c2d6589c32d482ee8afb Mon Sep 17 00:00:00 2001 From: mahmoud karzoun <135722882+mkarson1997@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:09:06 +0300 Subject: [PATCH 3/3] ci: scope repository validation permissions --- .github/workflows/quality.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 604582a..9fff055 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -6,11 +6,10 @@ on: pull_request: branches: [main] -permissions: - contents: read - jobs: validate-repository: + permissions: + contents: read runs-on: ubuntu-latest timeout-minutes: 5