Skip to content

Commit d5d3b1d

Browse files
authored
Merge pull request #1101 from cakephp/pin-actions
Pin action image and reduce permissions
2 parents 034b0e1 + 457c5ae commit d5d3b1d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/deploy_docs_2x.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 2.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/bake-docs-2'
2326
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}

‎.github/workflows/deploy_docs_3x.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 3.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/bake-docs-3'
2326
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)