Skip to content

Commit 5ba9284

Browse files
committed
ci: add permissions and persist-credentials checkout option
1 parent 8d8a002 commit 5ba9284

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
tags:
77
- '*'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
firefox:
1114
name: Build the extension for Firefox
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout the repo
1518
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
19+
with:
20+
persist-credentials: false
1621

1722
- name: Setup Node.js
1823
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

‎.github/workflows/lint.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: Lint
22
on: [push]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
lint:
69
runs-on: ubuntu-latest
710
steps:
811
- name: Checkout the repo
912
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
13+
with:
14+
persist-credentials: false
1015

1116
- name: Setup Node.js
1217
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

0 commit comments

Comments
 (0)