From c454a1218d9f336ef17ec7913cdfff4aa9f7920c Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 14 Nov 2023 15:09:13 +0100 Subject: [PATCH] Pin GitHub Actions workflows to a specific version --- .github/workflows/ci.yml | 20 ++++++++++---------- .github/workflows/pr-comment.yml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8f8ae545..e10a4238e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Use Elixir - uses: erlef/setup-beam@v1.16 + uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} @@ -41,7 +41,7 @@ jobs: echo "::set-output name=cache_key::$cache_key" - name: Retrieve Mix Dependencies Cache - uses: actions/cache@v3 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 id: mix-cache # id to use in retrieve action with: path: deps @@ -55,7 +55,7 @@ jobs: run: mix - name: Retrieve PLT Cache - uses: actions/cache@v3 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 id: plt-cache with: path: priv/plts @@ -92,9 +92,9 @@ jobs: otp: '26.0' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Use Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}} - uses: erlef/setup-beam@v1.16 + uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} @@ -110,7 +110,7 @@ jobs: echo "::set-output name=cache_key::$cache_key" - name: Retrieve Mix Dependencies Cache - uses: actions/cache@v3 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 id: mix-cache # id to use in retrieve action with: path: deps @@ -130,17 +130,17 @@ jobs: name: Link Checker runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Retrieve Lychee Cache - uses: actions/cache@v3 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 id: lychee-cache # id to use in retrieve action with: path: .lycheecache key: lychee-v1 - name: Link Checker - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421 with: args: --cache --max-cache-age 7d --require-https --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" --no-progress './**/*.md' './**/*.html' './**/*.json' fail: true diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 509dc68c3..e3c036b07 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -6,7 +6,7 @@ jobs: pr-comment: runs-on: ubuntu-22.04 steps: - - uses: exercism/pr-commenter-action@v1.5.1 + - uses: exercism/pr-commenter-action@085ef62d2a541a112c3ade1d24deea83665ea186 with: github-token: "${{ github.token }}" config-file: ".github/pr-commenter.yml"