Skip to content

Commit

Permalink
BLD: fix snyk auth CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc authored Dec 11, 2023
1 parent d6dea5c commit 80ee3c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ name: build
on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
test3d:
uses: equinor/warmth/.github/workflows/python-test-3d.yml@main
Expand All @@ -19,6 +23,8 @@ jobs:
action_type: ${{ github.event.action}}
snyk:
uses: equinor/warmth/.github/workflows/snyk.yml@main
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
docs:
uses: equinor/warmth/.github/workflows/docs.yml@main

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: [main, dev]
workflow_call:
secrets:
SNYK_TOKEN:
required: true
jobs:
security:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 80ee3c7

Please sign in to comment.