diff --git a/.github/actions/publish-hex/Dockerfile b/.github/actions/publish-hex/Dockerfile index d3cebce..02c8a36 100644 --- a/.github/actions/publish-hex/Dockerfile +++ b/.github/actions/publish-hex/Dockerfile @@ -1,4 +1,4 @@ -FROM elixir:1.12-alpine +FROM elixir:1.12-alpine@sha256:56f5042370b38a38ddc989dcd83f83835d8b8f83bf2ed40e8bacc972aa71ef6e COPY . . diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 44172e4..5fb353f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish to Hex on: push: tags: - - "*" + - "v*" permissions: contents: read # Check out the repository; publishing to hex.pm uses HEX_API_KEY @@ -11,9 +11,10 @@ permissions: jobs: publish: runs-on: ubuntu-latest + environment: hex steps: - name: Check out - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Publish package to hex.pm uses: ./.github/actions/publish-hex diff --git a/.github/workflows/sdk-spec.yml b/.github/workflows/sdk-spec.yml index 2dd74d7..20012f8 100644 --- a/.github/workflows/sdk-spec.yml +++ b/.github/workflows/sdk-spec.yml @@ -11,7 +11,7 @@ permissions: jobs: sdk-spec: # Keep the ref in `uses:` and `spec-ref` in sync. - uses: Flagsmith/sdk-spec/.github/workflows/run-spec.yml@v0.10.0 + uses: Flagsmith/sdk-spec/.github/workflows/run-spec.yml@942568f18f0b0178c61975c6d6e3b73ec7bf9864 # v0.10.0 with: spec-ref: v0.10.0 language: elixir diff --git a/.github/workflows/test_format_dialyze.yml b/.github/workflows/test_format_dialyze.yml index 6f9ff49..4b1e75a 100644 --- a/.github/workflows/test_format_dialyze.yml +++ b/.github/workflows/test_format_dialyze.yml @@ -35,12 +35,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: submodules: 'true' - name: Set up Elixir - uses: erlef/setup-beam@v1 + uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 with: version-file: ${{ matrix.version-file }} elixir-version: ${{ matrix.elixir }} @@ -52,7 +52,7 @@ jobs: shell: bash - name: Restore dependencies cache - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: deps key: ${{ runner.os }}-${{ matrix.name }}-deps-${{ env.MIX_LOCK_HASH }} @@ -62,7 +62,7 @@ jobs: run: mix deps.get - name: Restore build artifacts - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: _build key: ${{ runner.os }}-${{ matrix.name }}-build-${{ env.MIX_LOCK_HASH }} @@ -80,7 +80,7 @@ jobs: - name: Restore dialyzer PLTS if: matrix.lint - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: priv/plts key: ${{ runner.os }}-${{ matrix.name }}-plts-${{ env.MIX_LOCK_HASH }}