Skip to content

Commit f8ee503

Browse files
authored
Give CompatHelper workflow explicit permissions
1 parent 8473ac5 commit f8ee503

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,32 @@ on:
33
schedule:
44
- cron: 59 14 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
build:
811
runs-on: ubuntu-latest
912
steps:
1013
- name: "Add the General registry via Git"
14+
shell: julia --color=yes {0}
1115
run: |
1216
import Pkg
1317
ENV["JULIA_PKG_SERVER"] = ""
1418
Pkg.Registry.add("General")
15-
shell: julia --color=yes {0}
1619
- name: "Install CompatHelper"
20+
shell: julia --color=yes {0}
1721
run: |
1822
import Pkg
1923
name = "CompatHelper"
2024
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
2125
version = "3"
2226
Pkg.add(; name, uuid, version)
23-
shell: julia --color=yes {0}
2427
- name: "Run CompatHelper"
28+
shell: julia --color=yes {0}
2529
run: |
2630
import CompatHelper
2731
CompatHelper.main()
28-
shell: julia --color=yes {0}
2932
env:
3033
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3134
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)