-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from snyk-labs/feat/repo-alias
feat: repo alias
- Loading branch information
Showing
24 changed files
with
7,446 additions
and
630 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 @@ | ||
* @snyk-labs/cs-engineers |
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,31 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Submit a bug | ||
title: "[\U0001F41B]" | ||
labels: "\U0001F41B bug" | ||
assignees: '' | ||
--- | ||
|
||
- poetry version | ||
- python version | ||
- OS: (e.g. MacOS, Linux/UNIX, Windows) | ||
- Command run | ||
|
||
### Expected behaviour | ||
Please share _expected_ behaviour. | ||
|
||
### Actual behaviour | ||
Please share _problematic_ behaviour you are seeing. | ||
|
||
### Steps to reproduce | ||
Please share _minimal_ steps needed to reproduce your issue. Ideally | ||
a paired down manifest / project to showcase the problem that can also | ||
be used for testing. | ||
|
||
|
||
### Debug log | ||
If applicable, please include debug output here **ensuring to remove any sensitive/personal details or tokens. | ||
|
||
|
||
### Screenshots | ||
If applicable, add screenshots to help explain your problem. |
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,18 @@ | ||
--- | ||
name: "\U0001F64F Feature Request" | ||
about: Submit a feature request | ||
title: "[\U0001F64F]" | ||
labels: "\U0001F64F feature request" | ||
assignees: '' | ||
--- | ||
|
||
**Describe the user need** | ||
E.g. I want Snyk to ... | ||
|
||
**Describe expected behaviour** | ||
|
||
If you have an idea how you would like this to behave please share in as much detail as possible. | ||
|
||
**Additional context** | ||
|
||
Add any other context or screenshots about the feature request here. |
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,20 @@ | ||
- [ ] Tests written and linted | ||
- [ ] Documentation written in [README](../README.md) | ||
- [ ] Commit history is tidy & follows Contributing guidelines | ||
|
||
|
||
### What this does | ||
|
||
_Explain why this PR exists_ | ||
|
||
### Notes for the reviewer | ||
|
||
_Instructions on how to run this locally, background context, what to review, questions…_ | ||
|
||
### More information | ||
|
||
- [Link to documentation]() | ||
|
||
### Screenshots | ||
|
||
_Visuals that may help the reviewer_ |
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,30 @@ | ||
name: Build and Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Install dependencies | ||
run: $HOME/.poetry/bin/poetry install -v | ||
env: | ||
POETRY_VIRTUALENVS_IN_PROJECT: true | ||
|
||
- name: Run pytest | ||
run: | | ||
$HOME/.poetry/bin/poetry run pytest -v --ruff --ruff-format | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
from .snyk_dep_graph import DepGraph | ||
from .bazel import BazelXmlParser | ||
import logging | ||
import os | ||
import bazel2snyk | ||
|
||
BASE_PATH = os.path.dirname(bazel2snyk.__file__) | ||
|
||
logger = logging.getLogger(__name__) | ||
FORMAT = "[%(filename)s:%(lineno)4s - %(funcName)s ] %(message)s" | ||
logging.basicConfig(format=FORMAT) | ||
logger.setLevel(logging.WARN) |
Oops, something went wrong.