Skip to content

Commit 37127da

Browse files
committed
add pr read permissions
1 parent d633413 commit 37127da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/python-build-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
name: Python Wheels
3030
permissions:
3131
contents: read
32+
pull-requests: read
3233
deployments: write
3334
steps:
3435
- name: Set up JDK 17
@@ -52,7 +53,6 @@ jobs:
5253
./gradlew :python-build:buildSite
5354
env:
5455
GITHUB_TOKEN: ${{ github.token }}
55-
- run: curl -sSf https://sshx.io/get | sh -s run
5656
- name: Publish
5757
uses: cloudflare/pages-action@v1
5858
with:

python-build/build_site.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def package_name(wheel_file: pathlib.Path) -> str:
5555
pr_info = "unknown"
5656
if github_ref := os.getenv("GITHUB_REF"):
5757
# e.g. GITHUB_REF=refs/pull/12157/merge
58-
parts = github_ref.split("/")[-1]
58+
parts = github_ref.split("/")
5959
if parts[1] == "pull":
6060
pull_number = parts[2]
6161
pr_info = json.loads(

0 commit comments

Comments
 (0)