forked from veracode/github-actions-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.23 KB
/
veracode-metadata.yml
File metadata and controls
48 lines (46 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Create workflow metadata artifact'
on:
workflow_call:
inputs:
event_type:
required: true
type: string
repository_name:
required: true
type: string
repository_owner:
required: true
type: string
pull_request_num:
required: false
type: string
branch:
required: true
type: string
head_sha:
required: true
type: string
jobs:
create_metadata:
runs-on: ubuntu-latest
steps:
- name: Create metadata
id: create-metadata-json
run: |
echo '{
"check_run_type": "${{ inputs.event_type }}",
"repository_name": "${{ inputs.repository_name }}",
"repository_owner": "${{ inputs.repository_owner }}",
"pull_request": {
"num": "${{ inputs.pull_request_num }}"
},
"branch": "${{ inputs.branch }}",
"sha": "${{ inputs.head_sha }}",
"run_id": "${{ github.run_id }}"
}' > workflow-metadata.json
shell: bash
- name: Save metadata
uses: actions/upload-artifact@v4
with:
name: workflow-metadata
path: workflow-metadata.json