mirror of
https://github.com/zizmorcore/zizmor.git
synced 2025-12-23 08:47:33 +00:00
chore(ci): address pedantic zizmor findings (#943)
This commit is contained in:
parent
c6f0e29d4d
commit
d9fc0e1a23
10 changed files with 22 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -10,6 +10,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
@ -25,6 +26,7 @@ jobs:
|
|||
run: cargo clippy -- --deny warnings
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
@ -51,6 +53,7 @@ jobs:
|
|||
git diff --exit-code
|
||||
|
||||
test-site:
|
||||
name: Test site build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
@ -63,6 +66,7 @@ jobs:
|
|||
run: make site
|
||||
|
||||
all-tests-pass:
|
||||
name: All tests pass
|
||||
if: always()
|
||||
needs: [lint, test, test-site]
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
7
.github/workflows/release-docker.yml
vendored
7
.github/workflows/release-docker.yml
vendored
|
|
@ -78,9 +78,9 @@ jobs:
|
|||
|
||||
- name: Export digest
|
||||
run: |
|
||||
mkdir -p ${{ runner.temp }}/digests
|
||||
mkdir -p "${RUNNER_TEMP}/digests"
|
||||
digest="${DIGEST}"
|
||||
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
||||
touch "${RUNNER_TEMP}/digests/${digest#sha256:}"
|
||||
env:
|
||||
DIGEST: ${{ steps.build.outputs.digest }}
|
||||
|
||||
|
|
@ -93,6 +93,7 @@ jobs:
|
|||
retention-days: 1
|
||||
|
||||
merge:
|
||||
name: Merge image builds
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -149,7 +150,7 @@ jobs:
|
|||
docker buildx imagetools create \
|
||||
"${annotations[@]}" \
|
||||
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||
$(printf '${{ env.ZIZMOR_IMAGE }}@sha256:%s ' *)
|
||||
$(printf "${ZIZMOR_IMAGE}@sha256:%s " *)
|
||||
|
||||
- name: Inspect image
|
||||
run: |
|
||||
|
|
|
|||
5
.github/workflows/release-pypi.yml
vendored
5
.github/workflows/release-pypi.yml
vendored
|
|
@ -13,6 +13,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
linux:
|
||||
name: Build Linux wheels (manylinux)
|
||||
runs-on: ${{ matrix.platform.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -52,6 +53,7 @@ jobs:
|
|||
path: dist
|
||||
|
||||
musllinux:
|
||||
name: Build Linux wheels (musllinux)
|
||||
runs-on: ${{ matrix.platform.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -81,6 +83,7 @@ jobs:
|
|||
path: dist
|
||||
|
||||
windows:
|
||||
name: Build Windows wheels
|
||||
runs-on: ${{ matrix.platform.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -105,6 +108,7 @@ jobs:
|
|||
path: dist
|
||||
|
||||
macos:
|
||||
name: Build macOS wheels
|
||||
runs-on: ${{ matrix.platform.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -129,6 +133,7 @@ jobs:
|
|||
path: dist
|
||||
|
||||
sdist:
|
||||
name: Build source distribution
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
|
|||
1
.github/workflows/release-support-crate.yml
vendored
1
.github/workflows/release-support-crate.yml
vendored
|
|
@ -17,6 +17,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
crates:
|
||||
name: Publish support crate to crates.io 📦
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
|
|||
1
.github/workflows/release-zizmor-crate.yml
vendored
1
.github/workflows/release-zizmor-crate.yml
vendored
|
|
@ -9,6 +9,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
crates:
|
||||
name: Publish zizmor to crates.io 📦
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
|
|
|||
3
.github/workflows/site.yml
vendored
3
.github/workflows/site.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Deploy zizmor site 🌐
|
||||
name: Deploy zizmor documentation site 🌐
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -15,6 +15,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy zizmor documentation to GitHub Pages 🌐
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
|
|
|
|||
2
.github/workflows/test-output.yml
vendored
2
.github/workflows/test-output.yml
vendored
|
|
@ -12,6 +12,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
test-sarif-presentation:
|
||||
name: Test SARIF presentation
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.pull_request.labels.*.name, 'test-sarif-presentation')
|
||||
permissions:
|
||||
|
|
@ -48,6 +49,7 @@ jobs:
|
|||
})
|
||||
|
||||
test-github-presentation:
|
||||
name: Test GitHub annotations presentation
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.pull_request.labels.*.name, 'test-github-presentation')
|
||||
permissions: {}
|
||||
|
|
|
|||
1
.github/workflows/wolfi-update-check.yml
vendored
1
.github/workflows/wolfi-update-check.yml
vendored
|
|
@ -9,6 +9,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
check-for-new-version:
|
||||
name: Check for new zizmor version in Wolfi OS
|
||||
runs-on: ubuntu-latest
|
||||
# this job does not make sense on forks
|
||||
if: ${{ github.repository_owner == 'zizmorcore' }}
|
||||
|
|
|
|||
1
.github/workflows/zizmor.yml
vendored
1
.github/workflows/zizmor.yml
vendored
|
|
@ -10,6 +10,7 @@ permissions: {}
|
|||
|
||||
jobs:
|
||||
zizmor:
|
||||
name: Run zizmor 🌈
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue