Skip to content

Commit 5c056a3

Browse files
authored
ci: pin actions (#55)
1 parent 9617436 commit 5c056a3

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v1.1.1
15+
uses: dependabot/fetch-metadata@a3e5f86ae9f2f49b441498973ddec20035d326b8 # v1.1.1
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Enable auto-merge for Dependabot PRs

.github/workflows/bumpversion.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
name: "Bump version and create changelog with commitizen"
1111
steps:
12-
- uses: actions/create-github-app-token@v1
12+
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
1313
id: app-token
1414
with:
1515
app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
1616
private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 0
2020
token: ${{ steps.app-token.outputs.token }}
@@ -23,7 +23,7 @@ jobs:
2323
persist-credentials: false
2424
- id: cz
2525
name: Create bump and changelog
26-
uses: commitizen-tools/commitizen-action@master
26+
uses: commitizen-tools/commitizen-action@5b0848cd060263e24602d1eba03710e056ef7711 # 0.5.0
2727
with:
2828
github_token: ${{ steps.app-token.outputs.token }}
2929
- name: Print Version

.github/workflows/conventional-label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
label:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: bcoe/conventional-release-labels@v1
9+
- uses: bcoe/conventional-release-labels@886f696738527c7be444262c327c89436dfb95a8 #v1.3.1
1010
with:
1111
type_labels: '{"feat": "feature", "fix": "fix", "breaking": "breaking", "ci": "CI", "build": "build", "refactor": "refactor"}'

.github/workflows/lgtm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
exit 1
3636
3737
- name: Checkout PR code
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939
with:
4040
ref: refs/pull/${{ github.event.issue.number }}/merge
4141

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v6
19+
uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1
2020

2121
- name: Install the project
2222
run: uv sync --locked --extra lint --extra test
@@ -42,7 +42,7 @@ jobs:
4242
name: "Lint commit message"
4343
steps:
4444
- name: Check out
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646
- name: Install commitizen
4747
run: |
4848
python -m pip install --upgrade pip

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
contents: read
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Checkout
2424
uses: actions/setup-python@v4
2525
with:
@@ -40,7 +40,7 @@ jobs:
4040
packages: write
4141
steps:
4242
- name: Check out the repo
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444

4545
- name: Set up Docker Buildx
4646
uses: docker/setup-buildx-action@v3
@@ -60,12 +60,12 @@ jobs:
6060

6161
- name: Extract metadata (tags, labels) for Docker
6262
id: meta
63-
uses: docker/metadata-action@v5
63+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
6464
with:
6565
images: elementsinteractive/lightman-ai
6666

6767
- name: Build and push Docker image
68-
uses: docker/build-push-action@v5
68+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
6969
with:
7070
context: .
7171
file: ./Dockerfile
@@ -80,9 +80,9 @@ jobs:
8080
runs-on: ubuntu-latest
8181
needs: [push_to_pypi, push_to_docker_hub]
8282
steps:
83-
- uses: actions/checkout@v4
83+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8484
- name: Release
85-
uses: softprops/action-gh-release@v2
85+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 #v2.3.2
8686
with:
8787
generate_release_notes: true
8888
token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/security.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
container:
1616
image: ghcr.io/google/osv-scanner:v2.1.0@sha256:9a1ba57d2a1506c9e9d0dfbeaf46346507e829745b70d47d77e12c38e66de8d7
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
- name: Run OSV Scanner
2020
run: |
2121
/osv-scanner --format table -r .
2222
semgrep:
2323
runs-on: ubuntu-latest
2424
if: "!startsWith(github.event.head_commit.message, 'bump:')"
2525
container:
26-
image: returntocorp/semgrep:latest
26+
image: returntocorp/semgrep:1.128.1@sha256:144d315f7354c2b2c53021a76165a500f67252c47464be75e951b67050f54a9e
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
- name: Run Semgrep
3030
run: |
3131
semgrep scan --config auto

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v6
19+
uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1
2020

2121
- name: Install the project
2222
run: uv sync --locked --extra test

0 commit comments

Comments
 (0)