Skip to content

Commit 7c4e28a

Browse files
authored
[BRE-848] Add Workflow Permissions (#75)
1 parent fb70a52 commit 7c4e28a

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,29 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

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

12-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1317

1418
strategy:
1519
matrix:
1620
node-version: [20.x, 22.x]
1721

1822
steps:
19-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- name: Checkout Repo
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2025
- name: Use Node.js ${{ matrix.node-version }}
2126
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2227
with:
2328
node-version: ${{ matrix.node-version }}
2429
cache: 'npm'
25-
- run: npm ci
26-
- run: npm run build --if-present
30+
- name: NPM CI
31+
run: npm ci
32+
- name: NPM Build
33+
run: npm run build --if-present
2734

.github/workflows/enforce-labels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
workflow_call:
55
pull_request:
66
types: [labeled, unlabeled, opened, edited, synchronize]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
712
jobs:
813
enforce-label:
914
name: Enforce Label

.github/workflows/workflow-linter.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)