Skip to content

Commit 8de1ac8

Browse files
Merge pull request #80 from aboutcode-org/update-github-actions-ci
Fix github action failures and add zizmor
2 parents b8e5a33 + 06dcd2a commit 8de1ac8

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/daily-update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
- cron: '0 16 * * 1-5'
55
workflow_dispatch:
66

7+
permissions: {}
78
jobs:
89
update_licenseDB:
910
name: Daily LicenseDB Update
@@ -14,10 +15,12 @@ jobs:
1415
shell: bash
1516

1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
19+
with:
20+
persist-credentials: false
1821

1922
- name: Set up Python
20-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
2124
with:
2225
python-version: 3.12
2326

.github/workflows/zizmor.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: Run zizmor 🌈
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Run zizmor 🌈
24+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

0 commit comments

Comments
 (0)