Skip to content

Commit 4978903

Browse files
chore: pin GitHub actions to specific commit SHA (#214)
To proactively limit the impact of a compromised dependency, GitHub recommends that workflows pin dependency versions to a specific commit SHA. This will prevent malicious code added to a new or updated branch or tag from being automatically used. In GitHub there’s a setting to “Require actions to be pinned to a full-length commit SHA” and we intend to enable this setting soon. The changes in this PR were created using the [`pin-github-action`](https://github.com/mheap/pin-github-action) tool. [GitHub blog post](https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions/) <sub>This PR was generated using [turbolift](https://github.com/Skyscanner/turbolift).</sub>
1 parent 34552cd commit 4978903

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727

2828
steps:
2929
- name: Check out the repo
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
3131

3232
- name: Use Java ${{ matrix.java }}
33-
uses: actions/setup-java@v4
33+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
3434
with:
3535
distribution: 'corretto'
3636
java-version: ${{ matrix.java }}
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
./gradlew test
4444
45-
- uses: hmarr/auto-approve-action@v4
45+
- uses: hmarr/auto-approve-action@8f929096a962e83ccdfa8afcf855f39f12d4dac7 # v4
4646
if: "github.event.pull_request.user.login == 'github-actions[bot]'"
4747
with:
4848
github-token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
@@ -59,7 +59,7 @@ jobs:
5959
- id: automerge
6060
name: automerge
6161
if: "github.event.pull_request.user.login == 'github-actions[bot]'"
62-
uses: "pascalgn/automerge-action@v0.16.4"
62+
uses: "pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67" # v0.16.4
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
6565
MERGE_LABELS: ''
@@ -77,7 +77,7 @@ jobs:
7777
if: ${{ contains(needs.*.result, 'failure') }}
7878
steps:
7979
- name: Slack Notification
80-
uses: rtCamp/action-slack-notify@v2
80+
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2
8181
if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'github-actions[bot]')
8282
env:
8383
SLACK_USERNAME: Java SDK

.github/workflows/sdk_generation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
- cron: 0 0 * * *
2222
jobs:
2323
generate:
24-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
24+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@fe37b336cd1948f1e2e60383fd94bfb884318cf2 # v15
2525
with:
2626
force: ${{ github.event.inputs.force }}
2727
mode: pr
@@ -40,7 +40,7 @@ jobs:
4040
if: ${{ contains(needs.*.result, 'failure') }}
4141
steps:
4242
- name: Slack Notification
43-
uses: rtCamp/action-slack-notify@v2
43+
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2
4444
if: github.ref == 'refs/heads/main'
4545
env:
4646
SLACK_USERNAME: Java SDK

.github/workflows/sdk_publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
workflow_dispatch: {}
1515
jobs:
1616
publish:
17-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@fe37b336cd1948f1e2e60383fd94bfb884318cf2 # v15
1818
with:
1919
target: java
2020
secrets:
@@ -32,7 +32,7 @@ jobs:
3232
if: always()
3333
steps:
3434
- name: Slack Notification
35-
uses: rtCamp/action-slack-notify@v2
35+
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2
3636
if: github.ref == 'refs/heads/main'
3737
env:
3838
SLACK_USERNAME: Java SDK
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
steps:
5757
- name: Notify SDKs
58-
uses: peter-evans/repository-dispatch@v3
58+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
5959
with:
6060
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
6161
repository: ${{ matrix.repo }}

.github/workflows/sdk_tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
workflow_dispatch: {}
1212
jobs:
1313
tag:
14-
uses: speakeasy-api/sdk-generation-action/.github/workflows/tag.yaml@v15
14+
uses: speakeasy-api/sdk-generation-action/.github/workflows/tag.yaml@fe37b336cd1948f1e2e60383fd94bfb884318cf2 # v15
1515
with:
1616
registry_tags: main
1717
secrets:

0 commit comments

Comments
 (0)