Skip to content

Commit

Permalink
BLD: fix token
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Dec 12, 2023
1 parent 62261ed commit c9a1113
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
name: docs

on:
workflow_dispatch:
workflow_call:
secrets:
GITHUB_TOKEN:
GITHUB_TOKEN_WORKFLOW:
required: true
push:
branches: [ main ]

jobs:
deploy:
Expand All @@ -35,6 +32,6 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN_WORKFLOW }}
publish_dir: ./docs/_build/html
destination_dir: ./
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
uses: equinor/warmth/.github/workflows/snyk.yml@main
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN_WORKFLOW: ${{ secrets.GITHUB_TOKEN }}
docs:
uses: equinor/warmth/.github/workflows/docs.yml@main
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN_WORKFLOW: ${{ secrets.GITHUB_TOKEN }}

deploy:
needs: [test3d, test1d, snyk, docs]
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Snyk scan
on:
workflow_call:
secrets:
SNYK_TOKEN:
required: true
GITHUB_TOKEN:
required: true
workflow_call:
secrets:
SNYK_TOKEN:
required: true
GITHUB_TOKEN_WORKFLOW:
required: true
jobs:
security:
runs-on: ubuntu-latest
Expand All @@ -23,4 +23,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN_WORKFLOW }}

0 comments on commit c9a1113

Please sign in to comment.