forked from eclipse-leda/leda-distro
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.91 KB
/
ocaas.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
55
56
# /********************************************************************************
# * Copyright (c) 2022 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/
name: OCaaS Compliance checks
on:
workflow_dispatch:
workflow_call:
pull_request:
types:
- opened
push:
paths:
- '.ort.yml'
jobs:
ocaas-scan:
runs-on: ubuntu-22.04
if: github.repository_owner == 'SoftwareDefinedVehicle'
steps:
- name: OCaaS Scans
id: ocaas
uses: docker://osmipublic.azurecr.io/ocaas-ci:latest
continue-on-error: true # Built artifacts also should also be uploaded if the scan finds violations.
with:
args: auth generate-token run start download
env:
OCAAS_USERNAME: ${{ secrets.OCAAS_USERNAME }}
OCAAS_PASSWORD: ${{ secrets.OCAAS_PASSWORD }}
PROJECT_NAME: "Eclipse Leda Yocto Distro"
PIPELINE_ID: 377 # Your pipeline ID. Provided by the OSMI team.
VCS_URL: ${{ github.server_url }}/${{ github.repository }}.git
VCS_REVISION: ${{ github.ref_name }}
APPLICATION_CATEGORY: "BT11"
BLOCKING: true
REPORT_FILES: SCAN_REPORT_WEB_APP_HTML
OUTPUT_DIR: reports/
- name: Upload reports
id: upload
uses: actions/upload-artifact@v3
with:
name: oss-compliance-reports
path: reports/
- name: Check for violations
if: steps.ocaas.outcome != 'success' || steps.upload.outcome != 'success'
run: exit 1