forked from jfrog/jfrog-cli-security
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.69 KB
/
main.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: Print Job Summary
on:
push:
branches:
- '**'
env:
# Defined at top level as we use local CLI for testings
JFROG_CLI_LOG_LEVEL: DEBUG
JF_URL: "https://soleng.jfrog.io"
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
JFROG_CLI_CURATION: true
jobs:
Test-GitHub-Job-Summary:
strategy:
matrix:
os: [ ubuntu,macos ]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Setup Go environment
uses: actions/[email protected]
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks.
go-version: 1.22.1
# Use this action to see results in GitHub Actions UI
- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v4
with:
JF_URL: "https://soleng.jfrog.io"
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
# Get CLI source code
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'asafambar/jfrog-cli'
ref: 'curation_summary'
# build CLI EXE
- name: build cli
run: ./build/build.sh
# TODO -> in every command use the ./jf exectuable and not jf
# example ./jf rt ping instead of jf rt ping
# this will use the executable you just built.
- name: run curation
run: |
./jf goc --repo-resolve asafa-go-virtual
./jf scan jf
cd testdata/pip/requirementsproject
jf pipc --repo-resolve asafa-pip-remote
cd ../../..
ls
./jf ca --requirements-file=requirements.txt --working-dirs .,./testdata/pip/requirementsproject/requirements.txt