Files
component-detection-depende…/README.md
T

27 lines
821 B
Markdown
Raw Normal View History

2023-01-22 01:08:40 +00:00
# Component detection action
2022-08-25 09:12:00 -07:00
2023-01-22 01:08:40 +00:00
This GitHub Action runs the [microsoft/component-detection](https://github.com/microsoft/component-detection) library to automate dependency extraction at build time. It uses a combination of static and dynamic scanning to build a dependency tree and then uploads that to GitHub's dependency graph via the dependency submission API. This gives you more accurate Dependabot alerts, and support for a bunch of additional ecosystems.
2022-08-25 09:12:00 -07:00
2022-10-04 15:27:26 -07:00
### Example workflow
2023-01-20 01:49:01 +00:00
2022-08-25 09:12:00 -07:00
```yaml
2023-01-22 01:08:40 +00:00
name: Component Detection
2022-10-04 15:27:26 -07:00
2023-01-20 01:49:01 +00:00
on:
2022-10-04 15:27:26 -07:00
workflow_dispatch:
2023-01-20 01:49:01 +00:00
push:
2022-10-04 15:27:26 -07:00
2023-01-19 18:05:50 -08:00
permissions:
id-token: write
contents: write
2022-10-04 15:27:26 -07:00
jobs:
2023-01-20 01:49:01 +00:00
dependency-submission:
2022-10-04 15:27:26 -07:00
runs-on: ubuntu-latest
steps:
2023-01-20 01:49:01 +00:00
- uses: actions/checkout@v3
- name: Conda dependency scanning
2023-01-22 01:08:40 +00:00
uses: jhutchings1/[email protected]
2023-01-19 18:05:50 -08:00
```