diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e684961..e55af71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,11 +31,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - env: GH_TOKEN: ${{ secrets.GH_TOKEN }} name: Install dependencies @@ -50,13 +50,13 @@ jobs: name: Build the site run: mkdocs build - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with: name: build-pr${{ github.event.pull_request.number }}-${{ github.run_id }}-${{ github.run_attempt }} path: site - id: netlify name: Deploy to Netlify - uses: jsmrcaga/action-netlify-deploy@v2.4.0 + uses: jsmrcaga/action-netlify-deploy@ae36ac1b3d1ad3646eecb5631977e7314d3a6a2f # v2.4.0 with: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_DEPLOY_TO_PROD: ${{ env.NETLIFY_DEPLOY_TO_PROD }} @@ -65,7 +65,7 @@ jobs: build_directory: site install_command: echo Skipping installing the dependencies - name: Comment PR - uses: meysam81/comment-pr@main + uses: meysam81/comment-pr@88ed6f1bdbde6b97a4940a7aa33b24addb8e0744 # main with: title: "# Live preview" content: | @@ -96,11 +96,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - env: GH_TOKEN: ${{ secrets.GH_TOKEN }} name: Install dependencies @@ -114,19 +114,19 @@ jobs: name: Build the site run: mkdocs build - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with: name: build-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_attempt }} path: site - id: deployment name: Deploy to GitHub Pages - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 with: artifact_name: build-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_attempt }} - if: ${{ github.repository == 'developer-friendly/blog' }} id: netlify name: Deploy to Netlify - uses: jsmrcaga/action-netlify-deploy@v2.4.0 + uses: jsmrcaga/action-netlify-deploy@ae36ac1b3d1ad3646eecb5631977e7314d3a6a2f # v2.4.0 with: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_DEPLOY_TO_PROD: ${{ env.NETLIFY_DEPLOY_TO_PROD }} @@ -142,11 +142,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Calculate cache id run: echo "cache_id=$(date --utc '+%V')" >> "$GITHUB_ENV" - name: Cache lychee - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: key: lychee-${{ env.cache_id }} path: .lycheecache @@ -154,7 +154,7 @@ jobs: lychee- - id: lychee name: Link Checker - uses: lycheeverse/lychee-action@v2 + uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2 with: fail: ${{ github.ref == 'refs/heads/main' }} @@ -170,7 +170,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v9 + - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9 mirror: if: | @@ -179,7 +179,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 - name: Mirror to GitLab