Skip to content

Commit d8780ff

Browse files
Harden github CI for conda building using refs for actions (#43)
--------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5380b05 commit d8780ff

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build-containers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Set up QEMU
11-
uses: docker/setup-qemu-action@v3
11+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130
1212

1313
- name: Set up Docker Buildx
14-
uses: docker/setup-buildx-action@v3
14+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
1515

1616
- name: Login to GitHub Container Registry
17-
uses: docker/login-action@v3
17+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
1818
with:
1919
registry: ghcr.io
2020
username: ${{ github.actor }}
2121
password: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: Build and push pyomp container
24-
uses: docker/build-push-action@v6
24+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
2525
with:
2626
platforms: linux/amd64,linux/arm64
2727
file: buildscripts/containers/Dockerfile

.github/workflows/build-upload-conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
echo "CONDA_LABEL=main" >> $GITHUB_ENV
3737
fi
3838
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
4040
# Checkout the repo with history to get the commit hash for the build
4141
# string.
4242
with:
4343
fetch-depth: 0
4444

4545
- name: Create and activate conda env
46-
uses: conda-incubator/setup-miniconda@v3
46+
uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167
4747
with:
4848
python-version: "3.12"
4949
auto-update-conda: false

0 commit comments

Comments
 (0)