Skip to content

Commit

Permalink
Merge pull request #177 from maxmind/nobeid/github-actions-zizmor
Browse files Browse the repository at this point in the history
integrate zizmor in github actions
  • Loading branch information
ugexe authored Jan 10, 2025
2 parents f06a3e2 + a154e48 commit a93a344
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clang-addresssanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: Install system dependencies
run: sudo apt update && sudo apt install pkg-config clang build-essential libxml2-dev libsqlite3-dev wget libssl-dev libcurl4 zlib1g-dev libcurl4-openssl-dev libonig-dev libzip-dev -y
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: Install clang-tools and libmaxminddb
run: sudo apt update && sudo apt-get install clang-tools libmaxminddb-dev
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: Install libmaxminddb
run: |
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitHub Actions Security Analysis with zizmor

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

jobs:
zizmor:
name: zizmor latest via PyPI
runs-on: ubuntu-latest
permissions:
security-events: write
# required for workflows in private repositories
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: false

- name: Run zizmor
run: uvx zizmor --format plain .
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a93a344

Please sign in to comment.