Skip to content

Commit 1915326

Browse files
authored
fix: Pin hashes (#19)
1 parent 6411293 commit 1915326

8 files changed

Lines changed: 38 additions & 40 deletions

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Dependency review
18-
uses: actions/dependency-review-action@v4
19-
18+
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0

.github/workflows/pr-title.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212

1313
steps:
1414
- name: Validate PR title
15-
uses: amannn/action-semantic-pull-request@v5
15+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-

.github/workflows/publish-container.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@ on:
55
workflow_call:
66
inputs:
77
image-name:
8-
description: 'Container image name (e.g. my-app)'
8+
description: "Container image name (e.g. my-app)"
99
required: true
1010
type: string
1111
image-description:
12-
description: 'Description used in OCI annotations'
12+
description: "Description used in OCI annotations"
1313
required: false
14-
default: ''
14+
default: ""
1515
type: string
1616
registry:
17-
description: 'Container registry host (e.g. ghcr.io)'
17+
description: "Container registry host (e.g. ghcr.io)"
1818
required: false
19-
default: 'ghcr.io'
19+
default: "ghcr.io"
2020
type: string
2121
repo-owner:
22-
description: 'Owner/namespace for the image (defaults to calling repo owner)'
22+
description: "Owner/namespace for the image (defaults to calling repo owner)"
2323
required: false
24-
default: ''
24+
default: ""
2525
type: string
2626
context:
27-
description: 'Build context passed to Docker (e.g. . or ./app)'
27+
description: "Build context passed to Docker (e.g. . or ./app)"
2828
required: false
29-
default: '.'
29+
default: "."
3030
type: string
3131
dockerfile:
32-
description: 'Relative path to Dockerfile'
32+
description: "Relative path to Dockerfile"
3333
required: false
34-
default: 'Dockerfile'
34+
default: "Dockerfile"
3535
type: string
3636
platforms:
37-
description: 'Target platforms for the image (comma-separated)'
37+
description: "Target platforms for the image (comma-separated)"
3838
required: false
39-
default: 'linux/amd64,linux/arm64'
39+
default: "linux/amd64,linux/arm64"
4040
type: string
4141

4242
env:
@@ -55,7 +55,7 @@ jobs:
5555
packages: write
5656
steps:
5757
- name: Check out the repo
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5959

6060
- name: Set up QEMU
6161
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0

.github/workflows/semantic-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
workflow_call:
55
inputs:
66
node-version:
7-
description: 'Node.js version to use'
7+
description: "Node.js version to use"
88
required: false
9-
default: '24'
9+
default: "24"
1010
type: string
1111
outputs:
1212
release-created:
13-
description: 'Whether semantic-release created a new release/tag'
13+
description: "Whether semantic-release created a new release/tag"
1414
value: ${{ jobs.release.outputs.release-created }}
1515
release-tag:
16-
description: 'The tag created by semantic-release (empty if no release was created)'
16+
description: "The tag created by semantic-release (empty if no release was created)"
1717
value: ${{ jobs.release.outputs.release-tag }}
1818

1919
permissions:
@@ -35,14 +35,14 @@ jobs:
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939
with:
4040
# Full history is required — semantic-release reads all commits since the last
4141
# tag to determine the next version and generate the changelog.
4242
fetch-depth: 0
4343

4444
- name: Set up Node.js
45-
uses: actions/setup-node@v4
45+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4646
with:
4747
node-version: ${{ inputs.node-version }}
4848

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: 'Dependency Review'
1+
name: "Dependency Review"
22
on: [pull_request]
33

44
permissions:
55
contents: read
66

77
jobs:
88
dependency-review:
9-
uses: health-informatics-uon/workflows/.github/workflows/dependency-review.yml@1.3.0
9+
uses: health-informatics-uon/workflows/.github/workflows/dependency-review.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
1010
secrets: inherit

samples/check.pr-title.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Check PR title'
1+
name: "Check PR title"
22

33
on:
44
pull_request:
@@ -10,6 +10,6 @@ on:
1010

1111
jobs:
1212
main:
13-
uses: health-informatics-uon/workflows/.github/workflows/pr-title.yml@1.3.0
13+
uses: health-informatics-uon/workflows/.github/workflows/pr-title.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
1414
permissions:
1515
pull-requests: read

samples/release.container.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ on:
1717

1818
jobs:
1919
release:
20-
uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@1.3.0
20+
uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
2121
with:
22-
node-version: '24'
22+
node-version: "24"
2323
secrets: inherit
2424

2525
publish-container:
26-
uses: health-informatics-uon/workflows/.github/workflows/publish-container.yml@1.3.0
26+
uses: health-informatics-uon/workflows/.github/workflows/publish-container.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
2727
with:
2828
# Set your container image name
2929
image-name: <YOUR_IMAGE_NAME>
3030
# Describe your container image
31-
image-description: '<YOUR_IMAGE_DESCRIPTION>'
31+
image-description: "<YOUR_IMAGE_DESCRIPTION>"
3232
registry: ghcr.io
3333
# Path to the build context (usually '.')
3434
context: .
@@ -39,7 +39,7 @@ jobs:
3939
secrets: inherit
4040

4141
semver-container:
42-
uses: health-informatics-uon/workflows/.github/workflows/semver-container.yml@1.3.0
42+
uses: health-informatics-uon/workflows/.github/workflows/semver-container.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
4343
needs: [release, publish-container]
4444
if: needs.release.outputs.release-created == 'true'
4545
with:

samples/release.pypi.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ on:
1717

1818
jobs:
1919
release:
20-
uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@1.4.0
20+
uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@6411293719f0d3fc7fddb74530d4435333460e4f # v 1.4.1
2121
with:
22-
node-version: '24'
22+
node-version: "24"
2323
secrets: inherit
2424

2525
# PyPI trusted publishing (OIDC) cannot be used from within a reusable workflow.
@@ -36,16 +36,16 @@ jobs:
3636
permissions:
3737
id-token: write
3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4040

41-
- uses: actions/setup-python@v5
41+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4242
with:
43-
python-version: '3.x'
43+
python-version: "3.x"
4444

4545
- name: Build package
4646
run: |
4747
pip install build
4848
python -m build
4949
5050
- name: Publish to PyPI
51-
uses: pypa/gh-action-pypi-publish@release/v1
51+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

0 commit comments

Comments
 (0)