3535 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3636
3737 - name : Checkout
38- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
38+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
3939 with :
4040 persist-credentials : false
4141 path : ${{ env.APP_NAME }}
7171 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
7272 # Skip if no package.json
7373 if : ${{ steps.versions.outputs.nodeVersion }}
74- uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
74+ uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0 .0
7575 with :
7676 node-version : ${{ steps.versions.outputs.nodeVersion }}
77+ package-manager-cache : false
7778
7879 - name : Set up npm ${{ steps.versions.outputs.npmVersion }}
7980 # Skip if no package.json
8788 filename : ${{ env.APP_NAME }}/appinfo/info.xml
8889
8990 - name : Set up php ${{ steps.php-versions.outputs.php-min }}
90- uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
91+ uses : shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
9192 with :
9293 php-version : ${{ steps.php-versions.outputs.php-min }}
9394 coverage : none
@@ -96,15 +97,17 @@ jobs:
9697
9798 - name : Check composer.json
9899 id : check_composer
99- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
100+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
100101 with :
101102 files : " ${{ env.APP_NAME }}/composer.json"
102103
103104 - name : Install composer dependencies
104105 if : steps.check_composer.outputs.files_exists == 'true'
105- run : |
106- cd ${{ env.APP_NAME }}
107- composer install --no-dev
106+ uses : ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
107+ with :
108+ composer-options : ' --no-dev'
109+ working-directory : ${{ env.APP_NAME }}
110+ ignore-cache : ' yes'
108111
109112 - name : Build ${{ env.APP_NAME }}
110113 # Skip if no package.json
@@ -118,7 +121,7 @@ jobs:
118121
119122 - name : Check Krankerl config
120123 id : krankerl
121- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
124+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
122125 with :
123126 files : ${{ env.APP_NAME }}/krankerl.toml
124127
@@ -156,7 +159,7 @@ jobs:
156159 unzip nextcloud.zip
157160
158161 - name : Checkout server master fallback
159- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
162+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
160163 if : ${{ steps.server-download.outcome != 'success' }}
161164 with :
162165 persist-credentials : false
@@ -172,7 +175,7 @@ jobs:
172175 tar -xvf ${{ env.APP_NAME }}.tar.gz
173176 cd ../../../
174177 # Setting up keys
175- echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key # zizmor: ignore[secrets-outside-env]
178+ echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key
176179 wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt"
177180 # Signing
178181 php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}
@@ -181,7 +184,7 @@ jobs:
181184 tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
182185
183186 - name : Attach tarball to github release
184- uses : svenstaro/upload-release-action@b98a3b12e86552593f3e4e577ca8a62aa2f3f22b # v2 .11.4
187+ uses : svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2 .11.5
185188 id : attach_to_release
186189 with :
187190 repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -194,6 +197,6 @@ jobs:
194197 uses : nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1.0.3
195198 with :
196199 app_name : ${{ env.APP_NAME }}
197- appstore_token : ${{ secrets.APPSTORE_TOKEN }} # zizmor: ignore[secrets-outside-env]
200+ appstore_token : ${{ secrets.APPSTORE_TOKEN }}
198201 download_url : ${{ steps.attach_to_release.outputs.browser_download_url }}
199- app_private_key : ${{ secrets.APP_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
202+ app_private_key : ${{ secrets.APP_PRIVATE_KEY }}
0 commit comments