Merge pull request #65 from YuminosukeSato/release/v0.4.5-sbom #5
Workflow file for this run
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
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install syft | |
| uses: anchore/sbom-action/download-syft@v0 | |
| - name: Generate Go SBOM | |
| run: syft dir:. --exclude ./worker/python -o cyclonedx-json=sbom-go.cdx.json | |
| - name: Generate Python SBOM | |
| run: syft dir:worker/python -o cyclonedx-json=sbom-python.cdx.json | |
| - name: Generate Release Notes and Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: ${{ contains(github.ref, '-') }} | |
| files: | | |
| sbom-go.cdx.json | |
| sbom-python.cdx.json | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |