diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1aa837e..3fa3c84 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,22 +12,22 @@ jobs: name: Bash shfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 - run: docker-compose run --rm shfmt lint: name: Lint bash and markdown runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 - run: docker-compose run --rm lint bandit: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies @@ -43,9 +43,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies @@ -61,8 +61,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies @@ -78,8 +78,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies @@ -95,8 +95,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a3652d9..60ac510 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,7 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@99b6c709598e2b0d0841cd037aaf1ba07a4410bd # v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 60 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4815433..d7be2c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,8 +16,8 @@ jobs: python-version: [ "3.7", "3.8", "3.9", "3.10" ] steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies @@ -30,7 +30,7 @@ jobs: run: pytest --cov plugin_scripts/ tests/test_deploy.py --cov-report xml:coverage-${{ env.PYTHON_VERSION }}.xml --junitxml=test-results-${{ env.PYTHON_VERSION }}.xml - name: Upload pytest test results artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 with: name: pytest-results-${{ env.PYTHON_VERSION }} path: test-results-${{ env.PYTHON_VERSION }}.xml @@ -38,7 +38,7 @@ jobs: if: ${{ always() }} - name: Upload coverage results artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 with: name: pytest-coverage-${{ env.PYTHON_VERSION }} path: coverage-${{ env.PYTHON_VERSION }}.xml @@ -46,7 +46,7 @@ jobs: if: ${{ always() }} - name: Publish coverage results to Codecov - uses: codecov/codecov-action@v3.1.0 + uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0 with: token: ${{ secrets.CODECOV_TOKEN }} file: coverage-${{ env.PYTHON_VERSION }}.xml