Skip to content

Commit c75a80b

Browse files
authored
Merge pull request #418 from jolicode/action-up
Update GitHub Actions, harden security
2 parents e7475da + 633ebec commit c75a80b

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/cache.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v4
22+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
2323

2424
- name: Log in to registry
2525
shell: bash
2626
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
2727

2828
- name: setup-castor
29-
uses: castor-php/setup-castor@v1.0.0
29+
uses: castor-php/setup-castor@827c7ae1be0bb45e42a6082cad943a2afe0ffd40 # v1.0.0
3030

31-
- uses: actions/checkout@v6
31+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
32+
with:
33+
persist-credentials: false
3234

3335

3436
- name: "Build and start the infrastructure"

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
32+
with:
33+
persist-credentials: false
3234

3335
- name: Check php/Dockerfile
34-
uses: hadolint/hadolint-action@v3.3.0
36+
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
3537
with:
3638
dockerfile: infrastructure/docker/services/php/Dockerfile
3739

@@ -46,16 +48,18 @@ jobs:
4648
DS_PHP_VERSION: ${{ matrix.php-version }}
4749
steps:
4850
- name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v4
51+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
5052

5153
- name: Log in to registry
5254
shell: bash
5355
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
5456

5557
- name: setup-castor
56-
uses: castor-php/setup-castor@v1.0.0
58+
uses: castor-php/setup-castor@827c7ae1be0bb45e42a6082cad943a2afe0ffd40 # v1.0.0
5759

58-
- uses: actions/checkout@v6
60+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
61+
with:
62+
persist-credentials: false
5963

6064
- name: "Build and start the infrastructure"
6165
run: "castor start"

0 commit comments

Comments
 (0)