Skip to content

Commit 809d92f

Browse files
committed
Pin action image and reduce permissions
Pin the image revision used for dokku deployments and reduce permissions for deploy jobs. Pinning the image revision reduces the chances of supply chain attacks on images with access to real credentials.
1 parent b16a2f2 commit 809d92f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy_docs_4x.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 4.x
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
deploy:
1215
runs-on: ubuntu-latest
@@ -17,7 +20,7 @@ jobs:
1720
fetch-depth: 0
1821

1922
- name: Push to dokku
20-
uses: dokku/github-action@master
23+
uses: dokku/github-action@cc7dec1d2b9fed249a14ae462bc953bba436f78c # v1.10.0
2124
with:
2225
git_remote_url: 'ssh://dokku@apps.cakephp.org:22/debugkit-docs-4'
2326
git_push_flags: '-f'

.github/workflows/deploy_docs_5x.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 5.x
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
deploy:
1215
runs-on: ubuntu-latest
@@ -17,7 +20,7 @@ jobs:
1720
fetch-depth: 0
1821

1922
- name: Push to dokku
20-
uses: dokku/github-action@master
23+
uses: dokku/github-action@cc7dec1d2b9fed249a14ae462bc953bba436f78c # v1.10.0
2124
with:
2225
git_remote_url: 'ssh://dokku@apps.cakephp.org:22/debugkit-docs-5'
2326
git_push_flags: '-f'

0 commit comments

Comments
 (0)