22
22
latestVersion : ${{ steps.npm-latest-version.outputs.version }}
23
23
steps :
24
24
- name : Checkout
25
- uses : actions/checkout@v4
25
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
26
- name : Setup plugin dir variable
27
27
id : set-plugin-dirs
28
28
run : echo "pluginDirs=$(find ./examples -type d -name "src" -not -path "*/node_modules*" -maxdepth 3 -exec test -e "{}/plugin.json" \; -print | sed "s/\/src$//" | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
31
31
run : echo "version=$(npm view @grafana/ui dist-tags.canary)" >> $GITHUB_OUTPUT
32
32
- name : Setup docker canary tag variable
33
33
id : docker-canary-tag
34
- uses : actions/github-script@v7
34
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
35
35
env :
36
36
INPUT_NPM-TAG : ${{ steps.npm-canary-version.outputs.version }}
37
37
with :
@@ -57,15 +57,15 @@ jobs:
57
57
GF_DEFAULT_APP_MODE : " development"
58
58
GF_INSTALL_PLUGINS : " marcusolsson-static-datasource"
59
59
steps :
60
- - uses : actions/checkout@v4
60
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61
61
62
62
- name : Set the name of the plugin-example to be tested
63
63
id : example-name
64
64
run : |
65
65
echo "PLUGIN_NAME=$(basename ${{ matrix.pluginDir }})" >> $GITHUB_OUTPUT
66
66
67
67
- name : Setup node version
68
- uses : actions/setup-node@v4
68
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
69
69
with :
70
70
node-version : " 20"
71
71
registry-url : " https://registry.npmjs.org"
@@ -92,23 +92,23 @@ jobs:
92
92
echo "MAGEFILE_EXISTS=$(test -f ./Magefile.go && echo true || echo false)" >> $GITHUB_OUTPUT
93
93
working-directory : ${{ matrix.pluginDir }}
94
94
95
- - uses : actions/setup-go@v5
95
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
96
96
with :
97
97
go-version : " ~1.22"
98
98
check-latest : true
99
99
cache-dependency-path : ${{ matrix.pluginDir }}/go.sum
100
100
if : steps.backend-check.outputs.MAGEFILE_EXISTS == 'true'
101
101
102
102
- name : Test plugin backend
103
- uses : magefile/mage-action@v3
103
+ uses : magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
104
104
with :
105
105
version : latest
106
106
args : -v test
107
107
workdir : ${{ matrix.pluginDir }}
108
108
if : steps.backend-check.outputs.MAGEFILE_EXISTS == 'true'
109
109
110
110
- name : Build plugin backend
111
- uses : magefile/mage-action@v3
111
+ uses : magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
112
112
with :
113
113
version : latest
114
114
args : -v build:linux
@@ -173,7 +173,7 @@ jobs:
173
173
174
174
- name : Expected - Wait for Grafana to start
175
175
if : steps.has-integration-tests.outputs.DIR == 'true' && steps.should-run-expected-latest-tests.outcome == 'success'
176
- uses : nev7n/wait_for_response@v1
176
+ uses : nev7n/wait_for_response@7fef3c1a6e8939d0b09062f14fec50d3c5d15fa1 # v1.0.1
177
177
with :
178
178
url : " http://localhost:3000/"
179
179
responseCode : 200
@@ -214,7 +214,7 @@ jobs:
214
214
215
215
- name : Latest - Wait for Grafana to start
216
216
if : steps.has-integration-tests.outputs.DIR == 'true' && steps.should-run-expected-latest-tests.outcome == 'success'
217
- uses : nev7n/wait_for_response@v1
217
+ uses : nev7n/wait_for_response@7fef3c1a6e8939d0b09062f14fec50d3c5d15fa1 # v1.0.1
218
218
with :
219
219
url : " http://localhost:3000/"
220
220
responseCode : 200
@@ -264,7 +264,7 @@ jobs:
264
264
working-directory : ${{ matrix.pluginDir }}
265
265
266
266
- name : Canary - Build plugin backend
267
- uses : magefile/mage-action@v3
267
+ uses : magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
268
268
with :
269
269
version : latest
270
270
args : -v build:linux
@@ -280,7 +280,7 @@ jobs:
280
280
281
281
- name : Canary - Wait for Grafana to start
282
282
if : steps.has-integration-tests.outputs.DIR == 'true'
283
- uses : nev7n/wait_for_response@v1
283
+ uses : nev7n/wait_for_response@7fef3c1a6e8939d0b09062f14fec50d3c5d15fa1 # v1.0.1
284
284
with :
285
285
url : " http://localhost:3000/"
286
286
responseCode : 200
@@ -324,7 +324,7 @@ jobs:
324
324
needs : [run-integration-tests]
325
325
runs-on : ubuntu-latest
326
326
steps :
327
- - uses : actions/checkout@v4
327
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
328
328
- name : Publish report
329
329
uses : grafana/plugin-actions/playwright-gh-pages/deploy-report-pages@main
330
330
with :
@@ -344,7 +344,7 @@ jobs:
344
344
345
345
- name : Send GitHub Action trigger data to Slack workflow
346
346
id : slack
347
- uses : slackapi/slack-github-action@v1.27.0
347
+ uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
348
348
if : contains(fromJson('["failure"]'), needs.run-integration-tests.result)
349
349
with :
350
350
channel-id : ${{ secrets.SLACK_CHANNEL_ID }}
0 commit comments