Skip to content

Commit 78ad3de

Browse files
james67claude
andcommitted
Pin GitHub Actions to commit SHAs
Pin appleboy/scp-action and appleboy/ssh-action to their full commit SHAs to prevent tag-based supply chain attacks. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7b5f4a2 commit 78ad3de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o wtw ./cmd/wtw/
4646

4747
- name: Copy files to server
48-
uses: appleboy/scp-action@v0.1.7
48+
uses: appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634 # v0.1.7
4949
with:
5050
host: ${{ secrets.DEPLOY_HOST }}
5151
username: ${{ secrets.DEPLOY_USER }}
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Stop service before deploy
5959
continue-on-error: true
60-
uses: appleboy/ssh-action@v1.0.3
60+
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
6161
with:
6262
host: ${{ secrets.DEPLOY_HOST }}
6363
username: ${{ secrets.DEPLOY_USER }}
@@ -66,7 +66,7 @@ jobs:
6666
script: sudo systemctl stop wtw
6767

6868
- name: Install and restart service
69-
uses: appleboy/ssh-action@v1.0.3
69+
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
7070
with:
7171
host: ${{ secrets.DEPLOY_HOST }}
7272
username: ${{ secrets.DEPLOY_USER }}

0 commit comments

Comments
 (0)