You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# stub to call common GitHub Action (GA) as part of Continuous Integration (CI) Pull Request process checks for main branch
2
+
# inputs are described in the chef/common-github-actions/<GA.yml> with same name as this stub
3
+
#
4
+
# secrets are inherited from the calling workflow, typically SONAR_TOKEN, SONAR_HOST_URL, GH_TOKEN, AKEYLESS_JWT_ID, POLARIS_SERVER_URL and POLARIS_ACCESS_TOKEN
5
+
6
+
name: CI Pull Request on Main Branch
7
+
8
+
on:
9
+
pull_request:
10
+
branches: [ main, release/** ]
11
+
push:
12
+
branches: [ main, release/** ]
13
+
14
+
workflow_dispatch:
15
+
16
+
permissions:
17
+
contents: read
18
+
19
+
env:
20
+
STUB_VERSION: "1.0.5"
21
+
22
+
jobs:
23
+
echo_version:
24
+
name: 'Echo stub version'
25
+
runs-on: ubuntu-latest
26
+
steps:
27
+
- name: echo version of stub and inputs
28
+
run: |
29
+
echo "CI main pull request stub version $STUB_VERSION"
# perform application build and unit testing, will use custom repository properties when implemented for chef-primary-application, chef-build-profile, and chef-build-language
68
+
build: false
69
+
# ga-build-profile: $chef-ga-build-profile
70
+
# language: $chef-ga-build-language # this will be removed from stub as autodetected in central GA
71
+
unit-tests: false
72
+
73
+
# perform SonarQube scan, with or wihout unit test coverage data
74
+
# requires secrets SONAR_TOKEN and SONAR_HOST_URL (progress.sonar.com)
75
+
perform-sonarqube-scan: false
76
+
# perform-sonar-build: true
77
+
# build-profile: 'default'
78
+
# report-unit-test-coverage: true
79
+
80
+
# report to central developer dashboard
81
+
report-to-atlassian-dashboard: false
82
+
quality-product-name: 'Chef-Agents'# product name for quality reporting, like Chef360, Courier, Inspec
83
+
# quality-product-name: ${{ github.event.repository.name }} # like 'Chef-360' - the product name for quality reporting, like Chef360, Courier, Inspec
84
+
# quality-sonar-app-name: 'YourSonarAppName'
85
+
# quality-testing-type: 'Integration' like Unit, Integration, e2e, api, Performance, Security
86
+
# quality-service-name: 'YourServiceOrRepoName'
87
+
# quality-junit-report: 'path/to/junit/report''
88
+
89
+
# perform native and Habitat packaging, publish to package repositories
publish-packages: false # Publish packages (e.g., container from Dockerfile to ECR, go-releaser binary to releases page, omnibus to artifactory, gems, choco, homebrew, other app stores)
93
+
94
+
# generate and export Software Bill of Materials (SBOM) in various formats
95
+
generate-sbom: true
96
+
export-github-sbom: true # SPDX JSON artifact on job instance
97
+
perform-blackduck-sca-scan: true # combined with generate sbom & generate github-sbom, also needs version above
98
+
blackduck-project-group-name: 'Chef-Agents'# typically one of (Chef), Chef-Agents, Chef-Automate, Chef-Chef360, Chef-Habitat, Chef-Infrastructure-Server, Chef-Shared-Services, Chef-Non-Product'
99
+
blackduck-project-name: ${{ github.event.repository.name }} # BlackDuck project name, typically the repository name
100
+
generate-blackduck-sbom: true # obsolete, use perform-blackduck-sca-scan instead
101
+
102
+
generate-msft-sbom: false
103
+
license_scout: false # Run license scout for license compliance (uses .license_scout.yml)
0 commit comments