Skip to content

Commit 2a4fcfe

Browse files
authored
pin Github Actions to commits instead of hashes (#206)
1 parent 2e10a43 commit 2a4fcfe

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v2
16+
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

.github/workflows/ecr-publish-on-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
version: ${{ steps.get-package-version.outputs.version }}
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919
with:
2020
persist-credentials: false
2121

2222
- name: Set up uv
23-
uses: astral-sh/setup-uv@v4
23+
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
2424

2525
- name: Get version from package
2626
id: get-package-version
@@ -58,7 +58,7 @@ jobs:
5858
cache-to: type=gha,mode=max
5959

6060
- name: Generate CycloneDX SBOM with Syft
61-
uses: anchore/sbom-action@v0
61+
uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0
6262
with:
6363
image: mcp-proxy-for-aws:${{ steps.get-package-version.outputs.version }}
6464
format: cyclonedx-json
@@ -75,7 +75,7 @@ jobs:
7575
cyclonedx convert --input-file sbom.cyclonedx.json --input-format json --output-format csv --output-file SBOM-${{ steps.get-package-version.outputs.version }}.csv
7676
7777
- name: Upload SBOM artifact
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7979
with:
8080
name: sbom-${{ steps.get-package-version.outputs.version }}
8181
path: SBOM-${{ steps.get-package-version.outputs.version }}.csv
@@ -92,7 +92,7 @@ jobs:
9292
contents: read
9393
steps:
9494
- name: Checkout code
95-
uses: actions/checkout@v4
95+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
9696
with:
9797
persist-credentials: false
9898

.github/workflows/pypi-publish-on-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ jobs:
3535
contents: read
3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3939
with:
4040
persist-credentials: false
4141

4242
- name: Set up uv
43-
uses: astral-sh/setup-uv@v4
43+
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
4444

4545
- name: Build distribution packages
4646
run: uv build
4747

4848
- name: Upload distribution packages
49-
uses: actions/upload-artifact@v4
49+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5050
with:
5151
name: python-package-distributions
5252
path: dist/
@@ -62,13 +62,13 @@ jobs:
6262
contents: read
6363
steps:
6464
- name: Download distribution packages
65-
uses: actions/download-artifact@v5
65+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
6666
with:
6767
name: python-package-distributions
6868
path: dist/
6969

7070
- name: Set up uv
71-
uses: astral-sh/setup-uv@v4
71+
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
7272

7373
- name: Publish to PyPI
7474
run: uv publish

.github/workflows/python-integ.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: uv sync --frozen --all-extras --dev
4545

4646
- name: Configure AWS Credentials for Tests
47-
uses: aws-actions/configure-aws-credentials@v5
47+
uses: aws-actions/configure-aws-credentials@cabfdba3510de1431bac9dba27511d97497fc100 # v5
4848
with:
4949
aws-region: us-west-2
5050
role-to-assume: ${{ secrets.IntegTestRoleArn }}

.github/workflows/scheduled-integ-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
environment: Integ
2828
steps:
2929
- name: Configure AWS Credentials
30-
uses: aws-actions/configure-aws-credentials@v4
30+
uses: aws-actions/configure-aws-credentials@ff717079ee2060e4bcee96c4779b553acc87447c # v4
3131
with:
3232
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
3333
aws-region: us-east-1

.github/workflows/test-pypi-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ jobs:
3333
contents: read
3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3737
with:
3838
persist-credentials: false
3939

4040
- name: Set up uv
41-
uses: astral-sh/setup-uv@v4
41+
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
4242

4343
- name: Build distribution packages
4444
run: uv build
4545

4646
- name: Upload distribution packages
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4848
with:
4949
name: python-package-distributions
5050
path: dist/
@@ -59,13 +59,13 @@ jobs:
5959
id-token: write
6060
steps:
6161
- name: Download distribution packages
62-
uses: actions/download-artifact@v4
62+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
6363
with:
6464
name: python-package-distributions
6565
path: dist/
6666

6767
- name: Set up uv
68-
uses: astral-sh/setup-uv@v4
68+
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
6969

7070
- name: Publish to TestPyPI
7171
run: uv publish --publish-url https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)