File tree Expand file tree Collapse file tree 6 files changed +12
-30
lines changed Expand file tree Collapse file tree 6 files changed +12
-30
lines changed Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
7168 run : |
7269 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
7370 export ANALYZE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
74- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALYZE_ERR_FILE || true
71+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALYZE_ERR_FILE || true
7572 if [[ $(grep "ERROR" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
7673 then
7774 echo "::error::fossa analyze ran with errors."
Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
6764 run : |
6865 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
6966 export ANALYZE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
70- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALYZE_ERR_FILE || true
67+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALYZE_ERR_FILE || true
7168 if [[ $(grep "ERROR" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
7269 then
7370 echo "::error::fossa analyze ran with errors."
Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
7168 run : |
7269 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
7370 export ANALZYE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
74- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
71+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
7572 if [[ $(grep -i "error" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
7673 then
7774 echo "::error::fossa analyze ran with errors."
Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
9087 run : |
9188 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
9289 export ANALZYE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
93- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
90+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
9491 if [[ $(grep -i "error" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
9592 then
9693 echo "::error::fossa analyze ran with errors."
Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
7067 run : |
7168 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
7269 export ANALZYE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
73- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
70+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
7471 if [[ $(grep -i "error" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
7572 then
7673 echo "::error::fossa analyze ran with errors."
Original file line number Diff line number Diff line change 11name : FOSSA CLI Analysis - Scala
22on :
3- push :
4- branches : [ $default-branch ]
53 pull_request :
64 branches : [ $default-branch ]
7- workflow_dispatch :
85
96jobs :
107 check_env :
1916
2017 fossa :
2118 needs : check_env
22- if : ${{ needs.check_env.HAS_FOSSA_API_KEY }}
19+ if : ${{ needs.check_env.outputs. HAS_FOSSA_API_KEY == 'true' }}
2320 runs-on : ubuntu-latest
2421 env :
2522 FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
7269 run : |
7370 export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
7471 export ANALZYE_ERR_FILE=${{ runner.temp }}/analyze_err.txt
75- fossa analyze --policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
72+ fossa analyze --team='Service Accounts' -- policy='New Relic Public Github' 1>$ANALYZE_OUT_FILE 2>$ANALZYE_ERR_FILE || true
7673 if [[ $(grep -i "error" $ANALYZE_ERR_FILE | wc -l) -gt 0 ]]
7774 then
7875 echo "::error::fossa analyze ran with errors."
You can’t perform that action at this time.
0 commit comments