-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (44 loc) · 1.86 KB
/
Copy pathaction.yml
File metadata and controls
47 lines (44 loc) · 1.86 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
name: Detect Filecoin Security Profiles
description: Classify path-scoped Filecoin project components without executing Consumer Project code.
inputs:
repository-path:
description: Checked-out repository path to inspect as untrusted data.
required: false
default: .
result-file:
description: Destination for the machine-readable result; empty uses runner-controlled temporary storage.
required: false
default: ""
summary-file:
description: Destination for the readable table; empty uses runner-controlled temporary storage.
required: false
default: ""
outputs:
completion:
description: complete when detection and result rendering finish; operational failures fail the action.
value: ${{ steps.detect.outputs.completion }}
result-file:
description: Path to the machine-readable profile detection result.
value: ${{ steps.detect.outputs.result_file }}
summary:
description: Path to the readable component and profile table.
value: ${{ steps.detect.outputs.summary }}
profiles-json:
description: Compact JSON array of selected profile IDs and their component paths.
value: ${{ steps.detect.outputs.profiles_json }}
component-count:
description: Number of recognized project components.
value: ${{ steps.detect.outputs.component_count }}
coverage-gaps-count:
description: Number of recognized components without a supported profile.
value: ${{ steps.detect.outputs.coverage_gaps_count }}
runs:
using: composite
steps:
- id: detect
shell: bash
env:
REPOSITORY_PATH: ${{ inputs.repository-path }}
RESULT_FILE: ${{ inputs.result-file || format('{0}/profile-detection.json', runner.temp) }}
SUMMARY_FILE: ${{ inputs.summary-file || format('{0}/profile-detection-summary.md', runner.temp) }}
run: bash "${GITHUB_ACTION_PATH}/detect-filecoin-profile.sh"