chore(deps): update github/codeql-action digest to 6bb031a (#398) #253
This file contains 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: Run Release Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
release-please: | |
permissions: | |
contents: write # for googleapis/release-please-action to create release commit | |
pull-requests: write # for googleapis/release-please-action to create release PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3 | |
id: release | |
with: | |
command: manifest | |
token: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}} | |
default-branch: main | |
signoff: "OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>" | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
release_tag_name: ${{ steps.release.outputs.tag_name }} | |
release: | |
runs-on: ubuntu-latest | |
needs: release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4 | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
source-url: https://nuget.pkg.github.com/open-feature/index.json | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Pack | |
run: dotnet pack -c Release --no-restore | |
- name: Publish to Nuget | |
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.NUGET_TOKEN }}" --source https://api.nuget.org/v3/index.json | |
sbom: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # upload sbom to a release | |
needs: release-please | |
continue-on-error: true | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4 | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
dotnet-version: | | |
9.0.x | |
source-url: https://nuget.pkg.github.com/open-feature/index.json | |
- name: Install CycloneDX.NET | |
run: dotnet tool install CycloneDX | |
- name: Generate .NET BOM | |
run: dotnet CycloneDX --json --exclude-dev -sv "${{ needs.release-please.outputs.release_tag_name }}" ./src/OpenFeature/OpenFeature.csproj | |
- name: Attach SBOM to artifact | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
run: | |
gh release upload ${{ needs.release-please.outputs.release_tag_name }} bom.json |