Skip to content

Commit

Permalink
CI: make newer zizmor happy
Browse files Browse the repository at this point in the history
* set strict default permissions everywhere
* sanitize inputs.systems by passing through an env var
  • Loading branch information
lazka committed Jan 19, 2025
1 parent ea8491e commit 2649566
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/PKGBUILD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:


Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: '0 0 * * 3,6'

permissions:
contents: read

jobs:


Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/Tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- cron: '0 0 * * 3'
workflow_dispatch:

permissions:
contents: read

jobs:

matrix:
Expand Down
4 changes: 3 additions & 1 deletion matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ runs:
- name: Generate list of jobs
shell: python
id: jobs
env:
INPUT_SYSTEMS: ${{ inputs.systems }}
run: |
import os
icons = {
Expand All @@ -28,7 +30,7 @@ runs:
}
jobs = [
{'sys': sys.lower(), 'icon': icons[sys.lower()]}
for sys in '${{ inputs.systems }}'.split(' ')
for sys in os.environ['INPUT_SYSTEMS'].split(' ')
]
with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as h:
h.write(f"jobs={jobs!s}\n")

0 comments on commit 2649566

Please sign in to comment.