99 description : ' Version'
1010 required : true
1111
12- permissions :
13- id-token : write
14- attestations : write
12+ permissions : {}
1513
1614jobs :
1715 build-and-push :
1816 runs-on : ubuntu-latest
17+ permissions :
18+ id-token : write
19+ attestations : write
1920 steps :
20- - uses : actions/checkout@v4
21+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
22+ with :
23+ persist-credentials : false
2124
2225 - name : Setup PHP
23- uses : shivammathur/setup-php@v2
26+ uses : shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
2427 with :
2528 php-version : ' 8.4'
2629
2730 - name : Get version
2831 run : |
2932 echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
3033 if [ -n "$VERSION" ]; then
31- echo "RELEASE_VERSION=${{ inputs.version }} " >> $GITHUB_ENV
34+ echo "RELEASE_VERSION=$VERSION " >> $GITHUB_ENV
3235 fi
3336 env :
3437 VERSION : ${{ inputs.version }}
@@ -37,11 +40,11 @@ jobs:
3740 run : php -d phar.readonly=0 bin/build -v"$RELEASE_VERSION"
3841
3942 - name : Set up Docker Buildx
40- uses : docker/setup-buildx-action@v3
43+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
4144
4245 - name : Docker meta
4346 id : meta
44- uses : docker/metadata-action@v5
47+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
4548 with :
4649 images : deployphp/deployer
4750 tags : |
@@ -54,13 +57,13 @@ jobs:
5457 type=ref,event=tag
5558
5659 - name : Login to Docker Hub
57- uses : docker/login-action@v3
60+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
5861 with :
5962 username : deployphp
6063 password : ${{ secrets.DOCKERHUB_TOKEN }}
6164
6265 - name : Build and push
63- uses : docker/build-push-action@v6
66+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
6467 with :
6568 context : .
6669 platforms : linux/amd64,linux/arm64
0 commit comments