File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/OpenFeature.Contrib.Providers.EnvVar Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -71,21 +71,26 @@ jobs:
7171 with :
7272 subject-path : " ${{ matrix.release }}/**/*.nupkg"
7373
74+ - name : Find csproj file and set as environment variable
75+ id : find-csproj
76+ run : |
77+ csproj_path=$(find "${{ matrix.release }}" -name '*.csproj' -type f -print -quit)
78+ echo "CSPROJ_PATH=$csproj_path" >> "$GITHUB_OUTPUT"
79+
7480 - name : Generate JSON SBOM
7581 uses : CycloneDX/gh-dotnet-generate-sbom@c183e4ac30e5b99354cb9a98c38548e07c538346 # v1.0.1
7682 with :
77- path : " ${{ matrix.release }}/**/*.csproj"
78- out : ./artifacts/sboms
83+ path : ${{ steps.find-csproj.outputs.CSPROJ_PATH }}
7984 json : true
8085 github-bearer-token : ${{ secrets.GITHUB_TOKEN }}
8186
8287 - name : Attest package
8388 uses : actions/attest-sbom@115c3be05ff3974bcbd596578934b3f9ce39bf68 # v2.2.0
8489 with :
8590 subject-path : " ${{ matrix.release }}/**/*.nupkg"
86- sbom-path : artifacts/sboms/ bom.json
91+ sbom-path : bom.json
8792
8893 - name : Attach SBOM to artifact
8994 env :
9095 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
91- run : gh release upload ${{ needs.release-package.outputs.release_tag_name }} artifacts/sboms/ bom.json
96+ run : gh release upload ${{ needs.release-package.outputs.release_tag_name }} bom.json
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ using OpenFeature;
2020using OpenFeature .Contrib .EnvVar ;
2121
2222// If you want to use a prefix for your environment variables, you can supply it in the constructor below.
23- // For example, if you all your feature flag environment variables will be prefixed with feature-flag- then
23+ // For example, if you all your feature flag environment variables will be prefixed with feature-flag- then
2424// you would use:
2525// var envVarProvider = new EnvVarProvider("feature-flag-");
2626var envVarProvider = new EnvVarProvider ();
You can’t perform that action at this time.
0 commit comments