Add on-demand workflow for CVEs through issues

This commit is contained in:
trickest committed 2022-06-23 16:28:16 +02:00
1 parent 3b0c556377
commit 85e0633df8
2 files changed
+32

No files matched your search

+29
View File
@@ -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
+3
View File
@@ -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