Skip to content

Commit 70264b8

Browse files
committed
ci(github-actions): add read permissions and use env vars in summary
1 parent 85e611e commit 70264b8

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
branches:
1919
- dev
2020

21+
permissions:
22+
contents: read
23+
packages: write
24+
2125
jobs:
2226
build-and-push:
2327
runs-on: ubuntu-latest

.github/workflows/full-test-jsonl.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- "pyproject.toml"
1414
- "uv.lock"
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
test-container-jsonl:
1821
runs-on: ubuntu-latest
@@ -101,5 +104,7 @@ jobs:
101104
run: |
102105
echo "## Container Test Summary" >> $GITHUB_STEP_SUMMARY
103106
echo "- **PR Number:** ${{ github.event.pull_request.number }}" >> $GITHUB_STEP_SUMMARY
104-
echo "- **Photon Version:** ${{ env.PHOTON_VERSION }}" >> $GITHUB_STEP_SUMMARY
105-
echo "- **Status:** ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
107+
echo "- **Photon Version:** ${PHOTON_VERSION}" >> $GITHUB_STEP_SUMMARY
108+
echo "- **Status:** ${JOB_STATUS}" >> $GITHUB_STEP_SUMMARY
109+
env:
110+
JOB_STATUS: ${{ job.status }}

.github/workflows/full-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- "pyproject.toml"
1515
- "uv.lock"
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
test-container:
1922
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)