Skip to content

Commit 083f00a

Browse files
author
psadi
committed
ci: no persist-cred for tagging #test-1
1 parent 4b94a0f commit 083f00a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,21 @@ jobs:
6767

6868
tag:
6969
name: "👻 Tip Tag"
70+
permissions:
71+
actions: read
72+
security-events: write
73+
contents: write
7074
runs-on: ubuntu-latest
7175
needs:
7276
- build_appimage
73-
if: ${{ github.event_name == 'schedule' }}
7477
steps:
75-
- uses: actions/checkout@v4
76-
with:
77-
persist-credentials: false
78+
- uses: actions/checkout@v4 # zizmor: ignore[artipacked]
7879
- name: Tip Tag
7980
run: |
8081
git config user.name "github-actions[bot]"
8182
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
82-
git tag -fa tip -m "Latest Continuous Release" ${GITHUB_SHA}
83-
git push --force origin tip
83+
git tag -fa test-tip -m "Latest Continuous Release" ${GITHUB_SHA}
84+
git push --force origin test-tip
8485
8586
release_stable:
8687
name: 👻 Release Ghostty AppImage (Stable)
@@ -111,14 +112,14 @@ jobs:
111112

112113
release_nightly:
113114
name: 👻 Release Ghostty AppImage (Nightly)
115+
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
114116
needs:
115117
- build_appimage
116118
- tag
117119
permissions:
118120
actions: read
119121
contents: write
120122
runs-on: ubuntu-latest
121-
if: ${{ github.event_name == 'schedule' }}
122123
steps:
123124
- uses: actions/download-artifact@v4
124125
with:
@@ -127,13 +128,13 @@ jobs:
127128
- uses: actions/download-artifact@v4
128129
with:
129130
name: ghostty-appimage-x86_64
131+
130132
- name: Ghostty Tip ("Nightly")
131-
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
132133
uses: softprops/[email protected]
133134
with:
134135
name: '👻 Ghostty Tip ("Nightly")'
135136
prerelease: true
136-
tag_name: tip
137+
tag_name: test-tip
137138
target_commitish: ${{ github.sha }}
138139
files: |
139140
*.AppImage*

0 commit comments

Comments
 (0)