Skip to content

Commit f485118

Browse files
authored
Don't try to generate sbom or release on forks (#243)
* Don't try to generate sbom or release on forks * TEMP * Fix bug
1 parent bfed8a6 commit f485118

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/BuildAndPack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
name: "Generate attestations and Create Release"
7171
needs: build-and-test
7272
runs-on: ubuntu-latest
73+
# don't run on forks because they won't have permission
74+
if: github.repository == 'andrewlock/NetEscapades.AspNetCore.SecurityHeaders'
7375
permissions:
7476
id-token: write
7577
contents: write # write required for release creation

0 commit comments

Comments
 (0)