Skip to content

Commit 344fbd6

Browse files
authored
Add GitHub Actions workflow for security analysis (#300)
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
1 parent 4a550bb commit 344fbd6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (c) ONNX Project Contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: GitHub Actions Security Analysis with zizmor 🌈
6+
7+
on:
8+
push:
9+
branches: ["main"]
10+
pull_request:
11+
branches: ["**"]
12+
13+
permissions: {}
14+
15+
jobs:
16+
zizmor:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
contents: read # only needed for private repos
21+
actions: read # only needed for private repos
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run zizmor 🌈
29+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

0 commit comments

Comments
 (0)