-
Notifications
You must be signed in to change notification settings - Fork 0
Add Python support #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,71 +1,103 @@ | ||
| jobs: | ||
| arrange: | ||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: test -z "$(goarrange run -d)" | ||
|
|
||
| black: | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: poetry install | ||
| - run: poetry run black --check src | ||
|
|
||
| buf-generate: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm ci | ||
| - run: npx buf generate | ||
| - run: buf generate | ||
| - run: poetry install | ||
| - run: poetry run protol -o gen/elimity --create-package --in-place buf | ||
| - run: touch gen/elimity/py.typed | ||
| - run: git -c safe.directory=/__w/insights-sdk/insights-sdk diff --quiet | ||
|
|
||
| buf-lint: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm ci | ||
| - run: npx buf lint | ||
| - run: buf lint | ||
|
|
||
| check: | ||
|
Comment on lines
+29
to
+35
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: poetry check --lock | ||
|
|
||
| eslint: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm ci | ||
| - run: npx eslint . | ||
|
|
||
| golangci-lint: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: GOFLAGS='-buildvcs=false' golangci-lint run | ||
|
|
||
| isort: | ||
|
Comment on lines
+51
to
+57
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: poetry install | ||
| - run: poetry run isort -c src | ||
|
|
||
| mypy: | ||
|
Comment on lines
+58
to
+65
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: poetry install | ||
| - run: poetry run mypy src | ||
|
|
||
| prettier: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm ci | ||
| - run: npx prettier -c . | ||
|
|
||
| test: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: go test -v ./... | ||
|
|
||
| tidy: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: go mod tidy -diff | ||
|
|
||
| tsc: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| container: ghcr.io/elimity-com/insights-sdk:14245239418 | ||
| container: ghcr.io/elimity-com/insights-sdk:18279107697 | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm ci | ||
| - run: npx tsc | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
|
|
||
| on: pull_request | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [settings] | ||
| profile = black |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| FROM node:lts | ||
| FROM node:lts-trixie | ||
| ARG TARGETARCH | ||
| ENV PATH=$PATH:/root/go/bin:/usr/local/go/bin | ||
| ENV PATH=$PATH:/root/.local/bin:/root/go/bin:/usr/local/go/bin | ||
| RUN \ | ||
| curl -L https://go.dev/dl/go1.24.1.linux-$TARGETARCH.tar.gz | tar -C /usr/local -xz && \ | ||
| curl https://install.python-poetry.org | python3 && \ | ||
| curl https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh && \ | ||
| go install github.com/bufbuild/buf/cmd/buf@latest && \ | ||
| go install github.com/jdeflander/goarrange@latest |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import insights |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from . import common | ||
| from . import customgateway | ||
| from . import export |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import v1alpha1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import common_pb2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| from google.protobuf import timestamp_pb2 as _timestamp_pb2 | ||
| from google.protobuf.internal import containers as _containers | ||
| from google.protobuf import descriptor as _descriptor | ||
| from google.protobuf import message as _message | ||
| from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union | ||
|
|
||
| DESCRIPTOR: _descriptor.FileDescriptor | ||
|
|
||
| class Entity(_message.Message): | ||
| __slots__ = ("attribute_assignments", "id", "name", "type") | ||
| class AttributeAssignmentsEntry(_message.Message): | ||
| __slots__ = ("key", "value") | ||
| KEY_FIELD_NUMBER: _ClassVar[int] | ||
| VALUE_FIELD_NUMBER: _ClassVar[int] | ||
| key: str | ||
| value: Value | ||
| def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... | ||
| ATTRIBUTE_ASSIGNMENTS_FIELD_NUMBER: _ClassVar[int] | ||
| ID_FIELD_NUMBER: _ClassVar[int] | ||
| NAME_FIELD_NUMBER: _ClassVar[int] | ||
| TYPE_FIELD_NUMBER: _ClassVar[int] | ||
| attribute_assignments: _containers.MessageMap[str, Value] | ||
| id: str | ||
| name: str | ||
| type: str | ||
| def __init__(self, attribute_assignments: _Optional[_Mapping[str, Value]] = ..., id: _Optional[str] = ..., name: _Optional[str] = ..., type: _Optional[str] = ...) -> None: ... | ||
|
|
||
| class Relationship(_message.Message): | ||
| __slots__ = ("attribute_assignments", "from_entity_id", "from_entity_type", "to_entity_id", "to_entity_type") | ||
| class AttributeAssignmentsEntry(_message.Message): | ||
| __slots__ = ("key", "value") | ||
| KEY_FIELD_NUMBER: _ClassVar[int] | ||
| VALUE_FIELD_NUMBER: _ClassVar[int] | ||
| key: str | ||
| value: Value | ||
| def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... | ||
| ATTRIBUTE_ASSIGNMENTS_FIELD_NUMBER: _ClassVar[int] | ||
| FROM_ENTITY_ID_FIELD_NUMBER: _ClassVar[int] | ||
| FROM_ENTITY_TYPE_FIELD_NUMBER: _ClassVar[int] | ||
| TO_ENTITY_ID_FIELD_NUMBER: _ClassVar[int] | ||
| TO_ENTITY_TYPE_FIELD_NUMBER: _ClassVar[int] | ||
| attribute_assignments: _containers.MessageMap[str, Value] | ||
| from_entity_id: str | ||
| from_entity_type: str | ||
| to_entity_id: str | ||
| to_entity_type: str | ||
| def __init__(self, attribute_assignments: _Optional[_Mapping[str, Value]] = ..., from_entity_id: _Optional[str] = ..., from_entity_type: _Optional[str] = ..., to_entity_id: _Optional[str] = ..., to_entity_type: _Optional[str] = ...) -> None: ... | ||
|
|
||
| class Value(_message.Message): | ||
| __slots__ = ("boolean", "date", "date_time", "number", "string", "time") | ||
| BOOLEAN_FIELD_NUMBER: _ClassVar[int] | ||
| DATE_FIELD_NUMBER: _ClassVar[int] | ||
| DATE_TIME_FIELD_NUMBER: _ClassVar[int] | ||
| NUMBER_FIELD_NUMBER: _ClassVar[int] | ||
| STRING_FIELD_NUMBER: _ClassVar[int] | ||
| TIME_FIELD_NUMBER: _ClassVar[int] | ||
| boolean: bool | ||
| date: _timestamp_pb2.Timestamp | ||
| date_time: _timestamp_pb2.Timestamp | ||
| number: float | ||
| string: str | ||
| time: _timestamp_pb2.Timestamp | ||
| def __init__(self, boolean: bool = ..., date: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., date_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., number: _Optional[float] = ..., string: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import v1alpha1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| from . import customgateway_pb2 | ||
| from . import v1alpha1connect |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium