File: bdba.yml

package info (click to toggle)
libvpl-tools 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,640 kB
  • sloc: cpp: 107,613; python: 4,303; ansic: 3,202; sh: 159; lisp: 52; makefile: 13
file content (66 lines) | stat: -rw-r--r-- 1,766 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
---
name: Vulnerability scan

permissions: read-all

on:
  workflow_call:
    inputs:
      output_prefix:
        description: 'Prefix to add to output artifacts'
        required: false
        default: ''
        type: string
      version:
        description: 'String indicating version of uploaded scan'
        required: true
        type: string
      pattern:
        description: 'Glob pattern to the artifacts that should be scanned'
        required: true
        type: string
      docker_opts:
        description: 'extra options for docker build'
        required: false
        type: string

jobs:
  scan:
    runs-on: [self-hosted, linux]
    steps:

      - name: Cleanup workspace
        run: sudo rm -rf ..?* .[!.]* *

      - name: Checkout scripts and dispositions
        uses: actions/checkout@v4
        with:
          path: source

      - name: Download artifacts to scan
        uses: actions/download-artifact@v4
        with:
          path: bdba
          pattern: ${{ inputs.pattern }}
          merge-multiple: true

      - name: Create archive to scan
        run: |
          # cp infrastructure/config/.bdba.yaml bdba/
          pushd bdba
          zip --symlinks -r ../vpl-${{ inputs.output_prefix }}.zip .
          popd

      - name: Scan package
        uses: intel-innersource/frameworks.actions.bdba-scan@v4
        with:
          path: '*.zip'
          artifact-name: ${{ inputs.output_prefix }}bdba-scan
          version: ${{ inputs.version }}
          scan-name: vpl-${{ inputs.output_prefix }}
          ignore-ssl-error: ${{ vars.BDBA_IGNORE_SSL_ERROR }}
          group: ${{ vars.BDBA_GROUP }}
          token: ${{ secrets.BDBA_TOKEN }}

      - name: Cleanup workspace
        run: sudo rm -rf ..?* .[!.]* *