mirror of
https://github.com/trickest/cve.git
synced 2026-11-07 04:29:23 -10:00
Add on-demand workflow for CVEs through issues
This commit is contained in:
1 parent
3b0c556377
commit
85e0633df8
2 files changed
+32
No files matched your search
@@ -0,0 +1,29 @@
|
||||
name: CVEs On Demand
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [created, edited, labeled]
|
||||
|
||||
jobs:
|
||||
execute-trickest-workflow:
|
||||
if: ${{ github.event.label.name == 'On-Demand' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Check Out
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Replace Variables
|
||||
run: |
|
||||
cat config-template.yaml | sed 's/$CVE/${{ github.event.issue.title }}/g' | sed 's/$ISSUE_ID/${{ github.event.issue.number }}/g' > config.yaml
|
||||
|
||||
- name: Trickest Execute
|
||||
id: trickest
|
||||
uses: trickest/action@main
|
||||
env:
|
||||
TRICKEST_TOKEN: "${{ secrets.TRICKEST_TOKEN }}"
|
||||
with:
|
||||
workflow: "CVE - On Demand"
|
||||
space: "CVEs"
|
||||
watch: true
|
||||
config_path: config.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
inputs: # List of input values for the particular workflow nodes.
|
||||
string-to-file-1.string: $CVE
|
||||
string-to-file-2.string: $ISSUE_ID
|
||||
Reference in new issue
Block a user