From e897df75fa833f324f79442467a9a4f8a7f5dfd0 Mon Sep 17 00:00:00 2001 From: Praising Harris Ratnam Date: Tue, 6 Oct 2026 10:26:29 +0530 Subject: [PATCH 1/2] ci: harden workflow action supply chain --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6b786e..fecbeb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest @@ -13,14 +16,13 @@ jobs: matrix: python-version: ["3.9", "3.12"] steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: ${{ matrix.python-version }} - - name: Install (stdlib-only, editable) run: pip install -e . - - name: Run self-test run: python tests/test_modelhawk.py From 3fdd74dd3a3becbc6e6d100a5e549a03840ee0e6 Mon Sep 17 00:00:00 2001 From: Praising Harris Ratnam Date: Tue, 6 Oct 2026 10:26:31 +0530 Subject: [PATCH 2/2] ci: add weekly GitHub Actions dependency updates --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c75e875 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly