From 5c6d87aa4bedf74bb61b77c14864081bb6d319c7 Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 20:27:30 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/python-package.yml | 13 +++++++++---- .github/workflows/python-publish.yml | 9 +++++++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index fc48c5a..bac501e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -23,13 +23,18 @@ jobs: ] steps: - - uses: actions/checkout@v3 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 + with: + egress-policy: audit + + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4 with: python-version: ${{ matrix.python-version }} - name: Install Poetry - uses: snok/install-poetry@v1 + uses: step-security/install-poetry@6fdfac5af956bcf9f4e18897392eaa22dfadea1a # v1.4.1 - name: Install developer dependencies and documentapi run: poetry install - name: Lint with flake8 @@ -42,7 +47,7 @@ jobs: run: poetry run sphinx-build -b html . htmldir -W working-directory: docs/ - name: Set up Aerospike Database - uses: reugn/github-action-aerospike@v1 + uses: reugn/github-action-aerospike@2065a9209cfd5ef88a3e07f3e7929e321d1e0067 # v1.1.0 - name: Wait for database to start run: sleep 3 - name: Test cookbook example diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ec70354..ea1ba4f 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,9 +21,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 + with: + egress-policy: audit + + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4 with: python-version: '3.x' - name: Install dependencies