From 2558652f318d63f3f8570a1a2f87518cfd4498fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Apr 2026 09:45:45 +0000 Subject: [PATCH 1/2] Initial plan From 6467ef26d9017a34a3c19fd8a719eeb1ef66509d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Apr 2026 09:51:44 +0000 Subject: [PATCH 2/2] Pin all workflow actions to commit SHA1 hashes for supply chain security Agent-Logs-Url: https://github.com/fabiocaccamo/python-benedict/sessions/86292ea2-ba1b-4685-9eb6-680506475704 Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com> --- .github/workflows/create-release.yml | 10 +++++----- .github/workflows/pre-commit-autoupdate.yml | 8 ++++---- .github/workflows/scorecard.yml | 6 +++--- .github/workflows/test-package.yml | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8311383..5b1a54e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -15,10 +15,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 with: python-version: '3.x' cache: 'pip' @@ -58,10 +58,10 @@ jobs: - name: Extract release notes id: extract-release-notes - uses: ffurrer2/extract-release-notes@v3 + uses: ffurrer2/extract-release-notes@273da39a24fb7db106a35526c8162815faffd31d # v3 - name: Create release - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1 with: body: ${{ steps.extract-release-notes.outputs.release_notes }} token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }} @@ -78,7 +78,7 @@ jobs: GH_TOKEN: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }} - name: Publish on PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1 with: packages-dir: dist/ # password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }} diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 7ba4e65..a38bb8f 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -15,12 +15,12 @@ jobs: auto-update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 with: python-version: '3.x' - - uses: browniebroke/pre-commit-autoupdate-action@v1 - - uses: peter-evans/create-pull-request@v8 + - uses: browniebroke/pre-commit-autoupdate-action@f5c3ec85103b9f8f9be60b9c006cec763d2bdd02 # v1.0.1 + - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 with: token: ${{ secrets.GITHUB_TOKEN }} branch: update/pre-commit-hooks diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index cf9a308..edc12b7 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -19,19 +19,19 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: persist-credentials: false - name: Run Scorecard - uses: ossf/scorecard-action@v2.4.3 + uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 with: results_file: scorecard-results.sarif results_format: sarif publish_results: true - name: Upload results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3 with: sarif_file: scorecard-results.sarif category: scorecard diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index f1914d4..b08b2bd 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -23,10 +23,10 @@ jobs: steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -49,7 +49,7 @@ jobs: coverage xml -o ./coverage.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v6 + uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false