-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.53 KB
/
test.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
name: debug 1076
on: workflow_dispatch
permissions: read-all
jobs:
analysis:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=3.0.2
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # tag=v2.0.4
with:
results_file: results.sarif
results_format: sarif
publish_results: false
- name: "Debug"
run: |
echo "ANALYSIS(debug):"
cat results.sarif | jq
debug:
runs-on: ubuntu-latest
steps:
- name: test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENABLE_SARIF: 1
SCORECARD_EXPERIMENTAL: 1
run: |
gh -R ossf/scorecard release download v4.10.2 -p "scorecard_4.10.2_linux_amd64.tar.gz"
tar xvzf scorecard_4.10.2_linux_amd64.tar.gz
chmod u+x scorecard-linux-amd64
curl https://raw.githubusercontent.com/ossf/scorecard-action/main/policies/template.yml > policy.yml
echo
echo "SARIF(debug):"
./scorecard-linux-amd64 --repo=deislabs/ratify --format sarif --show-details --policy ./policy.yml | jq
echo
echo "JSON(debug):"
./scorecard-linux-amd64 --repo=deislabs/ratify --format json --show-details --policy ./policy.yml | jq