Skip to content

Commit 203087a

Browse files
Merge pull request #159 from BackNot/samm-website-repository-dispatch
Fixed "trigger-website-build" job condition. Changed job to use user token instead of default github token as a secret.
2 parents 74a7875 + cb6d45d commit 203087a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/yaml-process.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
SQUASH_HISTORY: true
6767
# after changing something, we need to trigger the website build
6868
trigger-website-build:
69-
if: github.event.push.tags && github.ref_type == 'tag'
69+
if: github.event_name == 'push' && github.ref_type == 'tag'
7070
runs-on: ubuntu-latest
7171
needs: generate-markdown
7272
steps:
7373
- name: Trigger Website Dispatch
7474
uses: peter-evans/repository-dispatch@v2
7575
with:
76-
token: ${{ secrets.GITHUB_TOKEN }}
76+
token: ${{ secrets.OWASP_SAMM_WEBSITE_TOKEN }}
7777
repository: owaspsamm/website
7878
event-type: samm-core-released
7979
client-payload: '{"release": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)