Skip to content

Commit deecba0

Browse files
authored
chore(ci): harden (#141)
This PR hardens the CI by explicitly pinning all GitHub actions to their exact commit SHAs.
1 parent 187e791 commit deecba0

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/cla.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: "CLA Assistant"
1414
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
15-
uses: contributor-assistant/github-action@v2.6.1
15+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
with:

.github/workflows/deploy.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ jobs:
1313
packages: write
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
1719

18-
- uses: docker/login-action@v3
20+
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
1921
with:
2022
registry: ghcr.io
2123
username: ${{ github.actor }}
2224
password: ${{ secrets.GITHUB_TOKEN }}
2325

2426
- id: meta
25-
uses: docker/metadata-action@v5
27+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
2628
with:
2729
images: ghcr.io/${{ github.repository }}
2830
labels: |
2931
org.opencontainers.image.licenses=MIT OR Apache-2.0
3032
3133
- name: Push Project Image
32-
uses: docker/build-push-action@v6
34+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3335
with:
3436
context: .
3537
file: Dockerfile

.github/workflows/pull_request.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ jobs:
77
python:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11+
with:
12+
persist-credentials: false
1113
- name: Setup Python 3.13
12-
uses: actions/setup-python@v3
14+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
1315
with:
1416
python-version: '3.13'
1517
- name: Install Requirements

0 commit comments

Comments
 (0)