Skip to content

Commit b65abf1

Browse files
committed
feat: add workflow to scan specific release
1 parent cfeb2e4 commit b65abf1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/scan_release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Scan specific release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release:
6+
description: 'Release version to scan'
7+
required: true
8+
default: '0.0.0-dev'
9+
10+
jobs:
11+
scan_release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Init submodules
16+
run: git submodule update --init --recursive
17+
- name: Set up Cosign
18+
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.11
22+
- name: Run image
23+
uses: abatilo/actions-poetry@v2
24+
with:
25+
poetry-version: 1.7.1
26+
- name: Install deps
27+
run: poetry install
28+
- name: Scan release
29+
id: scan
30+
run: poetry run python stack_scanner/main.py scan-release ${{ secrets.SECOBSERVE_API_TOKEN }} ${{ github.event.inputs.release }}

0 commit comments

Comments
 (0)