Skip to content

Commit 2666cf6

Browse files
committed
Add permissions to GitHub Actions workflows
1 parent e733934 commit 2666cf6

File tree

3 files changed

+4
-60
lines changed

3 files changed

+4
-60
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
2-
32
on: [push, pull_request]
4-
3+
permissions:
4+
contents: read
55
jobs:
66
test:
77
name: Test

.github/workflows/generate-parser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# generates the parser with 'tree-sitter generate' if the parser is out of date
22
name: Generate Parser
3-
43
on:
54
push:
65
branches:
76
- main
8-
7+
permissions:
8+
contents: write
99
jobs:
1010
generate:
1111
name: Generate Parser

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)