-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (50 loc) · 1.81 KB
/
fairseco.yml
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
49
50
51
52
53
54
name: RunFAIRSECO
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
RunTortellini:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tortellini-tools/action@v3
- uses: actions/upload-artifact@v3
with:
name: tortellini-result
path: .tortellini/out
RunSBOM:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: anchore/sbom-action@v0
with:
artifact-name: SBOM.spdx
RunFAIRSECO:
needs: [RunTortellini, RunSBOM]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: SecureSECO/FAIRSECO
path: FAIRSECO_Assets
- uses: SecureSECO/FAIRSECO@v1.0.0 # this is the main action
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: FAIRSECO Result
path: .FAIRSECO/
# commit and push the history file to the repo
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git pull
git add -f ./.fairseco_history.json
git commit --allow-empty -m "Update FAIRSECO history file"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}