Skip to content

Commit 7194851

Browse files
authored
chore: update workflows (#170)
* chore: update workflows * empty
1 parent c5a9cb0 commit 7194851

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ jobs:
2525
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2626
steps:
2727
- name: checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
persist-credentials: false
2931
- name: setup Go environment
30-
uses: actions/setup-go@v5
32+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3133
with:
3234
go-version: ${{ env.GO_VERSION }}
3335
cache-dependency-path: "**/*.sum"

.github/workflows/issue_commands.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Run commands when issues are labeled
2+
permissions: {}
3+
24
on:
35
issues:
46
types: [labeled]
@@ -7,15 +9,18 @@ jobs:
79
runs-on: ubuntu-latest
810
steps:
911
- name: Checkout Actions
10-
uses: actions/checkout@v4
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1113
with:
1214
repository: "grafana/grafana-github-actions"
15+
persist-credentials: false
1316
path: ./actions
1417
ref: main
1518
- name: Install Actions
1619
run: npm install --production --prefix ./actions
1720
- name: Run Commands
1821
uses: ./actions/commands
22+
env:
23+
ISSUE_COMMANDS_TOKEN: ${{secrets.ISSUE_COMMANDS_TOKEN}}
1924
with:
20-
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
25+
token: ${ISSUE_COMMANDS_TOKEN}
2126
configPath: issue_commands

0 commit comments

Comments
 (0)