Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@ jobs:
if: needs.check-react-native-changes.outputs.should_build == 'true'
uses: ./.github/workflows/react-native-build.yml

zizmor:
name: zizmor scan
permissions:
actions: read # required to scan GitHub Actions workflows
contents: read # required to checkout the repository
security-events: write # required to upload zizmor SARIF to code scanning
uses: ./.github/workflows/zizmor.yml

codeql-analysis:
name: CodeQL analysis
permissions:
Comment thread
opentelemetrybot marked this conversation as resolved.
Expand Down
39 changes: 12 additions & 27 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

name: zizmor scan
name: Zizmor

on:
workflow_call:
push:
branches: [main]
pull_request:
schedule:
Comment thread
opentelemetrybot marked this conversation as resolved.
- cron: '39 11 * * 6' # weekly at 11:39 UTC on Saturday
workflow_dispatch:
Comment thread
opentelemetrybot marked this conversation as resolved.

permissions: {}

concurrency:
group: zizmor-workflow-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

env:
FORCE_COLOR: 3
TERM: xterm

jobs:
zizmor:
name: Scan with zizmor
runs-on: ubuntu-24.04
permissions:
Comment thread
opentelemetrybot marked this conversation as resolved.
actions: read # required to scan GitHub Actions workflows
contents: read # required to checkout the repository
security-events: write # required to upload zizmor SARIF to code scanning
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
filter: "tree:0"
persist-credentials: false
show-progress: false

- name: Scan workflows with zizmor
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
with:
persona: pedantic
contents: read # for actions/checkout
security-events: write # for zizmor to upload SARIF results
uses: open-telemetry/shared-workflows/.github/workflows/zizmor.yml@d9b812f9924a121c6a8276ea2f9e6f5b622cdd4d # v0.10.0
with:
persona: pedantic