Upgrading trivy-sbom from 0.61.1 to 0.62.0 #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: the secureCodeBox authors | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # The CI runs on ubuntu-22.04; More info about the installed software is found here: | |
| # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md | |
| name: "Update Helm Docs" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| helm-docs: | |
| runs-on: ubuntu-22.04 | |
| if: github.repository == 'secureCodeBox/secureCodeBox' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.SCB_BOT_USER_TOKEN }} | |
| - name: Import GPG key | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_COMMITS_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_COMMITS_PASSPHRASE }} | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| git_committer_name: secureCodeBoxBot | |
| git_committer_email: [email protected] | |
| - name: Download Helm Docs | |
| run: | | |
| mkdir helm-docs | |
| cd helm-docs | |
| curl --output helm-docs.tar.gz --location https://github.com/norwoodj/helm-docs/releases/download/v1.6.0/helm-docs_1.6.0_Linux_x86_64.tar.gz | |
| # Checksum must be extracted from the checksum file every time helm-docs gets updated. | |
| echo "286723d931c18581fc324985cb96e9cce639e521fa63b57ac04ebe9d497e60fb helm-docs.tar.gz" | shasum --check | |
| tar -xvf helm-docs.tar.gz | |
| # Verify installation | |
| ./helm-docs --version | |
| sudo mv helm-docs /usr/local/bin/helm-docs | |
| - name: Generate README | |
| run: | | |
| make readme | |
| - name: Generate Demo Target Docs | |
| run: make demo-target-docs | |
| - name: Generate Hooks Docs | |
| run: make hook-docs | |
| - name: Generate Scanner Docs | |
| run: make scanner-docs | |
| - name: Generate Operator Docs | |
| run: make operator-docs | |
| - name: Generate AutoDiscovery Docs | |
| run: make auto-discovery-docs | |
| - name: Remove Helm Docs Files | |
| run: | | |
| # Remove helm-docs download to ensure they don't get committed back | |
| rm -rf helm-docs | |
| - name: Update Helm Docs | |
| run: | | |
| git add "**/*.md" | |
| git commit -sS -m "Updating Helm Docs" || true | |
| git push |