-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 931 Bytes
/
action.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
name: Evaluate Projects
on:
push:
branches:
- main
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq curl
- name: Install scorecard
run: |
curl -sSL https://github.com/ossf/scorecard/releases/download/v4.13.1/scorecard_4.13.1_linux_amd64.tar.gz | tar xz -C /tmp && sudo mv /tmp/./scorecard-linux-amd64 /usr/local/bin/scorecard
chmod +x /usr/local/bin/scorecard
- name: Run evaluation script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./evaluate.sh
./evaluate.sh projects
- name: Upload output file
uses: actions/upload-artifact@v2
with:
name: evaluation-output
path: results.txt