diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1e70a5be..a528e113 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -28,8 +28,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - - uses: hynek/build-and-inspect-python-package@v2 + - uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0 publish: needs: [dist] @@ -53,7 +54,7 @@ jobs: with: subject-path: "dist/*" - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 with: # Remember to tell (test-)pypi about this repo before publishing # Remove this line to publish to PyPI diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21e5ae10..feec6188 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,6 @@ name: CI +permissions: + contents: read on: workflow_dispatch: @@ -24,10 +26,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - uses: actions/setup-python@v5 with: python-version: "3.x" - - uses: pre-commit/action@v3.0.1 + - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 with: extra_args: --hook-stage manual --all-files @@ -45,6 +48,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - uses: actions/setup-python@v5 with: @@ -60,6 +64,6 @@ jobs: --durations=20 - name: Upload coverage report - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5 with: token: ${{ secrets.CODECOV_TOKEN }}