Skip to content

Commit 00f479e

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. This will need to be done for other branches individually.
1 parent e8da8b7 commit 00f479e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/deploy_5.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
deploy:
1518
runs-on: ubuntu-latest
@@ -20,9 +23,8 @@ jobs:
2023
fetch-depth: 0
2124

2225
- name: Push to dokku
23-
uses: dokku/github-action@master
26+
uses: dokku/github-action@cc7dec1d2b9fed249a14ae462bc953bba436f78c # v1.10.0
2427
with:
2528
branch: '5.x'
2629
git_remote_url: 'ssh://dokku@apps.cakephp.org:22/newbook-5'
27-
git_push_flags: '-f'
2830
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)