Skip to content

Commit

Permalink
Switch to reusable workflows (#69)
Browse files Browse the repository at this point in the history
* Update snyk-container.yml

* Update release-drafter.yml
  • Loading branch information
shenxianpeng committed Feb 22, 2024
1 parent b73e37f commit 415f48b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,5 @@ on:
workflow_dispatch:

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Draft your next Release notes as Pull Requests are merged into the default branch
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
draft-release:
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
21 changes: 2 additions & 19 deletions .github/workflows/snyk-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,5 @@ on:

jobs:
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Snyk to check Docker image for vulnerabilities
continue-on-error: true
uses: snyk/actions/docker@master
env:
# In order to use the Snyk Action you will need to have a Snyk API token.
# More details in https://github.com/snyk/actions#getting-your-snyk-token
# or you can signup for free at https://snyk.io/login
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: xianpengshen/clang-tools:all
args: --severity-threshold=high --file=Dockerfile.all

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
uses: cpp-linter/.github/.github/workflows/snyk-container.yml@main
secrets: inherit

0 comments on commit 415f48b

Please sign in to comment.