Skip to content

Commit 2d0375a

Browse files
authored
Pin and update actions (#12)
Pins and updates all actions to a known tagged version by its hash as suggested by the OpenSSF Scorecard project.
1 parent 29ae75a commit 2d0375a

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/publish_amdgpu_x86_64.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ jobs:
1919
packages: write
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Log in to the Container registry
24-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
24+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2525
with:
2626
registry: ${{ env.REGISTRY }}
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Extract metadata (tags, labels) for Docker
3030
id: meta
31-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
31+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3434
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
3535
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
3636
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
3737
- name: Build and push Docker image
38-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
38+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
3939
with:
4040
context: .
4141
file: dockerfiles/amdgpu_ubuntu_jammy_x86_64.Dockerfile
@@ -54,23 +54,23 @@ jobs:
5454
packages: write
5555
steps:
5656
- name: Checkout repository
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
- name: Log in to the Container registry
59-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
59+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
6060
with:
6161
registry: ${{ env.REGISTRY }}
6262
username: ${{ github.actor }}
6363
password: ${{ secrets.GITHUB_TOKEN }}
6464
- name: Extract metadata (tags, labels) for Docker
6565
id: meta
66-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
66+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
6767
with:
6868
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6969
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
7070
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
7171
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
7272
- name: Build and push Docker image
73-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
73+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
7474
with:
7575
context: .
7676
file: dockerfiles/amdgpu_ubuntu_jammy_ghr_x86_64.Dockerfile

.github/workflows/publish_cpubuilder_x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ jobs:
1919
packages: write
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Log in to the Container registry
24-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
24+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2525
with:
2626
registry: ${{ env.REGISTRY }}
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Extract metadata (tags, labels) for Docker
3030
id: meta
31-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
31+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3434
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
3535
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
3636
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
3737
- name: Build and push Docker image
38-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
38+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
3939
with:
4040
context: .
4141
file: dockerfiles/cpubuilder_ubuntu_jammy_ghr_x86_64.Dockerfile

.github/workflows/publish_manylinux_ghr_x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ jobs:
2020
packages: write
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Log in to the Container registry
25-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
25+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2626
with:
2727
registry: ${{ env.REGISTRY }}
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Extract metadata (tags, labels) for Docker
3131
id: meta
32-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
32+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
3333
with:
3434
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3535
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
3636
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
3737
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
3838
- name: Build and push Docker image
39-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
39+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
4040
with:
4141
context: .
4242
file: dockerfiles/manylinux_ghr_x86_64.Dockerfile

.github/workflows/publish_manylinux_x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ jobs:
2020
packages: write
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Log in to the Container registry
25-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
25+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2626
with:
2727
registry: ${{ env.REGISTRY }}
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Extract metadata (tags, labels) for Docker
3131
id: meta
32-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
32+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
3333
with:
3434
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3535
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
3636
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
3737
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
3838
- name: Build and push Docker image
39-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
39+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
4040
with:
4141
context: .
4242
file: dockerfiles/manylinux_x86_64.Dockerfile

0 commit comments

Comments
 (0)