-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6d5ad4
commit def0004
Showing
7 changed files
with
64 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Depscan Rust Changes | ||
on: | ||
pull_request: | ||
paths: | ||
- 'rust/**/Cargo.toml' | ||
- '.github/workflows/dep-scan-rust-changes.yaml' | ||
- '.github/workflows/dep-scan.yaml' | ||
|
||
jobs: | ||
scan: | ||
uses: ./.github/workflows/dependency-check.yaml | ||
with: | ||
path: rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Depscan Rust Nightly | ||
on: | ||
workflow_dispatch: # Allow manual running to refresh/check cache | ||
schedule: | ||
- cron: '0 2 * * *' | ||
|
||
jobs: | ||
scan: | ||
uses: ./.github/workflows/dependency-check.yaml | ||
with: | ||
path: rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Depscan | ||
on: | ||
workflow_call: | ||
inputs: | ||
path: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
dep-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Delete unnecessary tools folders | ||
run: | | ||
rm -rf /opt/hostedtoolcache | ||
rm -rf /usr/share/dotnet | ||
rm -rf /opt/ghc | ||
rm -rf "/usr/local/share/boost" | ||
rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- uses: actions/checkout@v3 | ||
- name: Cache VDB home | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}/vdb | ||
key: ${{ runner.os }}-dep-scan-${{ steps.date.outputs.date }} | ||
restore-keys: | | ||
${{ runner.os }}-dep-scan- | ||
- uses: ./.github/actions/dep-scan | ||
with: | ||
src: /github/workspace/${{ inputs.path }} | ||
env: | ||
VDB_HOME: ${{ github.workspace }}/vdb | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Upload reports | ||
path: reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters