Skip to content

Latest commit

 

History

History
78 lines (59 loc) · 3.51 KB

File metadata and controls

78 lines (59 loc) · 3.51 KB

Common GitHub Actions design and contributions

Workflow ci-main-pull-request.yml description

  1. identify affected repos (needing common GH action)

    • list of repos finalized for limited GA
  2. prototype each GH action on https://github.com/chef/chef-vault

  3. first 10 repos

  4. have teams do next round

copy PR-v2.yml & stub to other 3 common-github-actions repos

  1. https://github.com/habitat-sh/common-github-actions
  2. https://github.com/inspec/common-github-actions

set up secrets like

set up sonar.properties from references

needs work

ref- https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/languages/ruby/

Blackduck

SCA needs BLACKDUCK_URL and secrets.BLACKDUCK_TOKEN can upload SARIF to GitHub Adv Security in advanced example

Polaris needs POLARIS_SERVER_URL, secrets.POLARIS_ACCESS_TOKEN

Coverity needs COVERITY_URL, COVERITY_USER, secrets.COVERITY_PASSPHRASE

copy to test repos

chef

upgrade all common stubs to progress-platform-sevices

generate Sonar reports for limited GA

https://www.bitegarden.com/how-to-create-sonarqube-report

add container stuff

https://github.com/actions/starter-workflows/blob/main/code-scanning/kubesec.yml https://github.com/actions/starter-workflows/blob/main/code-scanning/snyk-container.yml

Evaluate other tools: https://github.com/actions/starter-workflows/blob/main/code-scanning/sysdig-scan.yml https://github.com/actions/starter-workflows/blob/main/code-scanning/trivy.yml

Release notes for ci-main-pull-request.yml

  1. v1.0.7 - added simple build and unit test for Go CLI projects, parameters for publishing Habitat packages (but not implementation yet), testing Habitat packages with grype on Windows or Linux, and Go-language security checks (golangci/golangci-lint-action, dominikh/staticcheck-action, and securego/gosec), new flags for testing Polaris
  2. v1.0.5 -
  3. Previous versions -

References for building in GitHub Actions

https://docs.github.com/en/actions/sharing-automations/reusing-workflows#passing-inputs-and-secrets-to-a-reusable-workflow