Skip to content

Commit 415f48b

Browse files
authored
Switch to reusable workflows (#69)
* Update snyk-container.yml * Update release-drafter.yml
1 parent b73e37f commit 415f48b

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

.github/workflows/release-drafter.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
update_release_draft:
11-
runs-on: ubuntu-latest
12-
steps:
13-
# Draft your next Release notes as Pull Requests are merged into the default branch
14-
- uses: release-drafter/release-drafter@v5
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
draft-release:
11+
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main

.github/workflows/snyk-container.yml

+2-19
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,5 @@ on:
2020

2121
jobs:
2222
snyk:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- name: Run Snyk to check Docker image for vulnerabilities
27-
continue-on-error: true
28-
uses: snyk/actions/docker@master
29-
env:
30-
# In order to use the Snyk Action you will need to have a Snyk API token.
31-
# More details in https://github.com/snyk/actions#getting-your-snyk-token
32-
# or you can signup for free at https://snyk.io/login
33-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
34-
with:
35-
image: xianpengshen/clang-tools:all
36-
args: --severity-threshold=high --file=Dockerfile.all
37-
38-
- name: Upload result to GitHub Code Scanning
39-
uses: github/codeql-action/upload-sarif@v2
40-
with:
41-
sarif_file: snyk.sarif
23+
uses: cpp-linter/.github/.github/workflows/snyk-container.yml@main
24+
secrets: inherit

0 commit comments

Comments
 (0)