Skip to content

Commit 5959827

Browse files
authored
Merge pull request #4471 from nextcloud/dep/actions-2
Update actions
2 parents c2cbc42 + 51c7b39 commit 5959827

File tree

12 files changed

+28
-23
lines changed

12 files changed

+28
-23
lines changed

.github/actions/get-polls-version/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33
name: Read polls version from info.xml
4+
description: 'Get app version from info.xml and compare it to tag name'
45
inputs:
56
skip-check:
67
description: Do not check tag against version
@@ -21,7 +22,7 @@ runs:
2122
steps:
2223
- name: Get app version from appinfo/info.xml
2324
id: appinfo
24-
uses: mavrosxristoforos/get-xml-info@2.0
25+
uses: mavrosxristoforos/get-xml-info@afaa5058ead44cfaff92c6a861b46dd7a8929f60 # v2.0
2526
with:
2627
xml-file: 'appinfo/info.xml'
2728
xpath: '//info//version'
@@ -33,7 +34,7 @@ runs:
3334

3435
- name: Compare versions
3536
if: ${{ !inputs.skip-version && format('v{0}', steps.appinfo.outputs.info) != steps.gettag.outputs.VERSION }}
36-
uses: actions/github-script@v6
37+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
3738
with:
3839
script: |
3940
core.setFailed('App version ${{ format('v{0}', steps.appinfo.outputs.info) }} is not equal to tag name ${{ steps.gettag.outputs.VERSION }}!')

.github/actions/setup-composer/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33
name: Setup composer and PHP
4+
description: 'Setup PHP environment and install composer dependencies with caching'
45
inputs:
56
php-version:
67
description: 'PHP version (default: 8.2)'
@@ -34,7 +35,7 @@ runs:
3435
using: 'composite'
3536
steps:
3637
- name: Use or setup caching composer packages (${{ inputs.mode }})
37-
uses: actions/cache@v4
38+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # version 5.0.3
3839
id: cache-composer
3940
env:
4041
cache-name: cache-composer-${{ inputs.mode }}
@@ -47,7 +48,7 @@ runs:
4748
${{ runner.os }}-
4849
4950
- name: Set up php ${{ inputs.php-version }}
50-
uses: shivammathur/setup-php@v2
51+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
5152
with:
5253
php-version: ${{ inputs.php-version }}
5354
tools: ${{ inputs.php-tools }}

.github/actions/setup-node/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33
name: Setup node and dependencies
4+
description: 'Setup node environment and install npm dependencies'
45
inputs:
56
node-version:
67
required: false
@@ -16,7 +17,7 @@ runs:
1617
using: 'composite'
1718
steps:
1819
- name: Use or setup caching npm modules
19-
uses: actions/cache@v4
20+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # version 5.0.3
2021
id: cache-modules
2122
env:
2223
cache-name: cache-node-modules
@@ -29,7 +30,7 @@ runs:
2930
${{ runner.os }}-
3031
3132
- name: Set up node ${{ inputs.node-version }}
32-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3334
with:
3435
node-version: ${{ inputs.node-version }}
3536

.github/actions/setup-server/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33
name: Checkout and setup server
4+
description: 'Checkout Nextcloud server and app, setup PHP and install dependencies'
45
inputs:
56
server-version:
67
required: false
@@ -55,7 +56,7 @@ runs:
5556
using: 'composite'
5657
steps:
5758
- name: Checkout server ${{ inputs.server-version }}
58-
uses: actions/checkout@v4
59+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5960
with:
6061
path: ${{ inputs.server-path }}
6162
repository: nextcloud/server
@@ -70,12 +71,12 @@ runs:
7071
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
7172
7273
- name: Checkout ${{ inputs.app-name }}
73-
uses: actions/checkout@v4
74+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7475
with:
7576
path: ${{ inputs.server-path }}/apps/${{ inputs.app-name }}
7677

7778
- name: Set up php ${{ inputs.php-version }}
78-
uses: shivammathur/setup-php@v2
79+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
7980
with:
8081
php-version: ${{ inputs.php-version }}
8182
tools: ${{ inputs.php-tools }}

.github/workflows/auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
# Default github action approve
11-
- uses: hmarr/auto-approve-action@v4
11+
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # 4.0.0
1212
if: github.ref == 'refs/heads/master' &&
1313
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
1414
with:
1515
github-token: ${{ secrets.GITHUB_TOKEN }}
1616

1717
# Nextcloud bot approve and merge request
18-
- uses: ahmadnassri/action-dependabot-auto-merge@v2
18+
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # 2.6.6
1919
if: github.ref == 'refs/heads/master' &&
2020
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
2121
with:

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0
3434
with:
3535
languages: ${{ matrix.language }}
3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v4
37+
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0
3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v4
39+
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0

.github/workflows/lock-closed-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33
name: 'Lock Issues'
44

5-
on:
5+
on:
66
schedule:
77
- cron: '2 4 * * *'
88

@@ -12,7 +12,7 @@ jobs:
1212
lock:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: dessant/lock-threads@v6
15+
- uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 #v6.0.0
1616
with:
1717
github-token: ${{ github.token }}
1818
issue-inactive-days: '31'

.github/workflows/publish_alpha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
- name: Extract release notes
5050
if: success()
5151
id: extract-release-notes
52-
uses: ffurrer2/extract-release-notes@v3
52+
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0
5353
with:
5454
prerelease: true
5555

5656
- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
5757
if: success()
58-
uses: softprops/action-gh-release@v2
58+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
5959
with:
6060
body: "# Changelog for the upcoming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
6161
prerelease: true

.github/workflows/publish_beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
- name: Extract release notes
5252
if: success()
5353
id: extract-release-notes
54-
uses: ffurrer2/extract-release-notes@v3
54+
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0
5555
with:
5656
prerelease: true
5757

5858
- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
5959
if: success()
60-
uses: softprops/action-gh-release@v2
60+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
6161
with:
6262
body: "# Changelog for the upcoming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
6363
prerelease: true

.github/workflows/publish_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
- name: Extract release notes
5151
if: success()
5252
id: extract-release-notes
53-
uses: ffurrer2/extract-release-notes@v3
53+
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0
5454

5555
- name: Draft Release
5656
if: success()
57-
uses: softprops/action-gh-release@v2
57+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
5858
with:
5959
body: "# Changelog ${{ steps.appinfo.outputs.app-version }} \n ${{ steps.extract-release-notes.outputs.release_notes }} "
6060
prerelease: false

0 commit comments

Comments
 (0)