Skip to content

Commit 9fb2ee9

Browse files
authored
[BRE-848] Adding Workflow Permissions (#104)
1 parent 89bbbce commit 9fb2ee9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
14+
name: Build and Test
1115

1216
runs-on: ubuntu-24.04
1317

@@ -17,17 +21,18 @@ jobs:
1721
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1822

1923
steps:
20-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- name: Checkout Repo
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126
- name: Use Node.js ${{ matrix.node-version }}
2227
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2328
with:
2429
node-version: ${{ matrix.node-version }}
2530
cache: 'npm'
26-
- name: restore dependencies
31+
- name: Restore dependencies
2732
run: npm ci
28-
- name: build
33+
- name: Build
2934
run: npm run build --if-present
30-
- name: lint
35+
- name: Lint
3136
run: npm run lint
32-
- name: test
37+
- name: Test
3338
run: npm test

0 commit comments

Comments
 (0)