Skip to content

Commit 206a65d

Browse files
authored
Pin github action versions to specific hash (#495)
1 parent 48ecdfb commit 206a65d

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/automatic-update.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
steps:
1212
- name: Generate token
1313
id: generate_token
14-
uses: tibdex/github-app-token@v2
14+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
1515
with:
1616
app_id: ${{ secrets.APP_ID }}
1717
private_key: ${{ secrets.APP_PEM }}
1818

1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121

2222
- name: Update Grafana version
2323
run: |
@@ -36,7 +36,7 @@ jobs:
3636
- name: Create PR
3737
id: create_pr
3838
if: ${{ steps.status.outputs.has_changes == 'true' }}
39-
uses: peter-evans/create-pull-request@v7
39+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4040
with:
4141
token: ${{ steps.generate_token.outputs.token }}
4242
branch: new-update-plugin-examples

.github/workflows/check-readme-links.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
name: runner / linkspector
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99
- name: Run linkspector
10-
uses: umbrelladocs/action-linkspector@v1
10+
uses: umbrelladocs/action-linkspector@3e12ade1e0b1823455dae8cf8b4f9cc92ec7dd20 # v1.3.3
1111
with:
1212
github_token: ${{ secrets.github_token }}
1313
reporter: github-pr-review

.github/workflows/integration-tests.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
latestVersion: ${{ steps.npm-latest-version.outputs.version }}
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Setup plugin dir variable
2727
id: set-plugin-dirs
2828
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,7 +31,7 @@ jobs:
3131
run: echo "version=$(npm view @grafana/ui dist-tags.canary)" >> $GITHUB_OUTPUT
3232
- name: Setup docker canary tag variable
3333
id: docker-canary-tag
34-
uses: actions/github-script@v7
34+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3535
env:
3636
INPUT_NPM-TAG: ${{ steps.npm-canary-version.outputs.version }}
3737
with:
@@ -57,15 +57,15 @@ jobs:
5757
GF_DEFAULT_APP_MODE: "development"
5858
GF_INSTALL_PLUGINS: "marcusolsson-static-datasource"
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6161

6262
- name: Set the name of the plugin-example to be tested
6363
id: example-name
6464
run: |
6565
echo "PLUGIN_NAME=$(basename ${{ matrix.pluginDir }})" >> $GITHUB_OUTPUT
6666
6767
- name: Setup node version
68-
uses: actions/setup-node@v4
68+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
6969
with:
7070
node-version: "20"
7171
registry-url: "https://registry.npmjs.org"
@@ -92,23 +92,23 @@ jobs:
9292
echo "MAGEFILE_EXISTS=$(test -f ./Magefile.go && echo true || echo false)" >> $GITHUB_OUTPUT
9393
working-directory: ${{ matrix.pluginDir }}
9494

95-
- uses: actions/setup-go@v5
95+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
9696
with:
9797
go-version: "~1.22"
9898
check-latest: true
9999
cache-dependency-path: ${{ matrix.pluginDir }}/go.sum
100100
if: steps.backend-check.outputs.MAGEFILE_EXISTS == 'true'
101101

102102
- name: Test plugin backend
103-
uses: magefile/mage-action@v3
103+
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
104104
with:
105105
version: latest
106106
args: -v test
107107
workdir: ${{ matrix.pluginDir }}
108108
if: steps.backend-check.outputs.MAGEFILE_EXISTS == 'true'
109109

110110
- name: Build plugin backend
111-
uses: magefile/mage-action@v3
111+
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
112112
with:
113113
version: latest
114114
args: -v build:linux
@@ -173,7 +173,7 @@ jobs:
173173

174174
- name: Expected - Wait for Grafana to start
175175
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
177177
with:
178178
url: "http://localhost:3000/"
179179
responseCode: 200
@@ -214,7 +214,7 @@ jobs:
214214

215215
- name: Latest - Wait for Grafana to start
216216
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
218218
with:
219219
url: "http://localhost:3000/"
220220
responseCode: 200
@@ -264,7 +264,7 @@ jobs:
264264
working-directory: ${{ matrix.pluginDir }}
265265

266266
- name: Canary - Build plugin backend
267-
uses: magefile/mage-action@v3
267+
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0
268268
with:
269269
version: latest
270270
args: -v build:linux
@@ -280,7 +280,7 @@ jobs:
280280

281281
- name: Canary - Wait for Grafana to start
282282
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
284284
with:
285285
url: "http://localhost:3000/"
286286
responseCode: 200
@@ -324,7 +324,7 @@ jobs:
324324
needs: [run-integration-tests]
325325
runs-on: ubuntu-latest
326326
steps:
327-
- uses: actions/checkout@v4
327+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
328328
- name: Publish report
329329
uses: grafana/plugin-actions/playwright-gh-pages/deploy-report-pages@main
330330
with:
@@ -344,7 +344,7 @@ jobs:
344344
345345
- name: Send GitHub Action trigger data to Slack workflow
346346
id: slack
347-
uses: slackapi/slack-github-action@v1.27.0
347+
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
348348
if: contains(fromJson('["failure"]'), needs.run-integration-tests.result)
349349
with:
350350
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}

.github/workflows/notify-plugin-tools.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515
with:
1616
fetch-depth: 0
1717

@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Repository Dispatch
3131
if: steps.check_files.outputs.has_relevant_changes == 'true'
32-
uses: peter-evans/repository-dispatch@v3
32+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
3333
with:
3434
token: ${{ secrets.REPO_ACCESS_TOKEN }}
3535
repository: grafana/plugin-tools

0 commit comments

Comments
 (0)