Skip to content

Commit 0c3bcc0

Browse files
zimegClaude
andauthored
ci: follow workflow best practices with scoped permissions and pinned sha versions (#65)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent b1f2f19 commit 0c3bcc0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@ jobs:
88
test:
99
name: "maven@java17"
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
strategy:
1214
matrix:
1315
showcase:
1416
- "block-kit"
1517
- "methods"
1618
steps:
1719
- name: Checkout code
18-
uses: actions/checkout@v7
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
1923
- name: Install JDK
20-
uses: actions/setup-java@v6
24+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
2125
with:
2226
java-version: 17
2327
distribution: "temurin"

0 commit comments

Comments
 (0)