Skip to content

Commit f9de6ea

Browse files
author
PS Adithya
authored
Merge pull request pkgforge-dev#5 from lwbt/pr-zizmor
Add zizmor linter and resolve warnings
2 parents 9beedca + 420820a commit f9de6ea

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ on:
88
release:
99
types: [published]
1010

11-
permissions:
12-
actions: read
13-
security-events: write
14-
contents: write
15-
1611
jobs:
1712
build_appimage:
13+
permissions:
14+
actions: read
15+
security-events: write
16+
contents: write
1817
name: Build Ghostty
1918
runs-on: ubuntu-24.04
2019
container:
@@ -23,6 +22,8 @@ jobs:
2322
steps:
2423
- name: Checkout ghostty-appimage
2524
uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
2627

2728
- name: Setup Build Env
2829
run: ./setup.sh
@@ -38,6 +39,10 @@ jobs:
3839
path: /tmp/ghostty-build/Ghostty-x86_64.AppImage*
3940

4041
release_appimage:
42+
permissions:
43+
actions: read
44+
security-events: write
45+
contents: write
4146
name: "Upload binaries to current release"
4247
runs-on: ubuntu-latest
4348
if: ${{ github.event_name == 'release' }}

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ repos:
3030
rev: v1.7.6
3131
hooks:
3232
- id: actionlint-system
33+
34+
- repo: https://github.com/woodruffw/zizmor
35+
rev: v0.5.0
36+
hooks:
37+
- id: zizmor
38+
files: ^\.github/workflows/.*\.ya?ml$

0 commit comments

Comments
 (0)