Skip to content

Commit

Permalink
BLD: public pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc authored Dec 12, 2023
1 parent 80ee3c7 commit 62261ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: docs
on:
workflow_dispatch:
workflow_call:
secrets:
GITHUB_TOKEN:
required: true
push:
branches: [ main ]

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: build
name: build and publish

on:
workflow_dispatch:
Expand All @@ -25,8 +25,11 @@ jobs:
uses: equinor/warmth/.github/workflows/snyk.yml@main
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs:
uses: equinor/warmth/.github/workflows/docs.yml@main
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy:
needs: [test3d, test1d, snyk, docs]
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Snyk scan
on:
push:
branches: [main, dev]
workflow_call:
secrets:
SNYK_TOKEN:
required: true
GITHUB_TOKEN:
required: true
jobs:
security:
runs-on: ubuntu-latest
Expand All @@ -18,7 +18,9 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif --severity-threshold=high

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
sarif_file: snyk.sarif
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 62261ed

Please sign in to comment.