Skip to content

Commit

Permalink
Merge pull request #220 from levoai/CU-86aznftr3_Github-action-for-co…
Browse files Browse the repository at this point in the history
…de-based-scanning_Raviteja-Gannarapu

Cu 86aznftr3 GitHub action for code based scanning
  • Loading branch information
gannaraputeja authored Apr 11, 2024
2 parents bf101bb + 6fe23c8 commit 32c384a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/install-code-analysis-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,54 @@ sidebar_position: 6
- The App Name will be the same as the title of the OpenAPI/Swagger spec.
### Github Action
#### Prerequisites
- An account on Levo.ai
- An application code repository on GitHub (Currently Java and Python is supported)
#### Action Configuration
The pre-built action for executing `Scan Code` requires the following configuration settings:
- `authorization-key` : Specify your CLI authorization key here. Refer to [Generating CLI Authorization Keys](/integrations/common-tasks.md#generating-cli-authorization-keys) for instructions on fetching your key
- `organization-id` : Specify your *Organization ID* here. Refer to [Accessing Organization IDs](/integrations/common-tasks.md#accessing-organization-ids) for instructions on fetching your ID
- `saas-url` : The URL of the Levo SaaS instance. Default value is `https://api.levo.ai`. For India, use `https://api.india-1.levo.ai`.
- `app-name` : The name of the application you want to see on the Levo Dashboard
- `env-name` : This is an **OPTIONAL** setting. The environment to which your app should belong. Default value is `staging`.
Here is a sample *Scan Code Action* with its configuration:
```YAML
- name: Levo Scan Repo
uses: levoai/actions/[email protected]
with:
# Authorization key required to execute the Levo CLI. Please refer to https://app.levo.ai/settings/keys to get your authorization key.
authorization-key: <'Specify your CLI authorization key here'>
# The ID of your organization in Levo dashboard. Please refer to https://app.levo.ai/settings/organization to get your organization id.
organization-id: <'Specify your organization ID here'>
# [OPTIONAL] The environment to which your app should belong. Default: staging.
saas-url: "https://api.dev.levo.ai"
# The name of the application you want to see on the Levo Dashboard.
app-name: <'Application Name here'>
# [OPTIONAL] The environment to which your app should belong. Default: staging.
env-name: <'Environment Name here'>
```

#### Job Outputs
This pre-built *Action* produces the below [Outputs](https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs), which can be referenced by downstream Actions/Jobs.

```YAML
outputs:
scan-success: <'true/false'>
```
[install-cli]: /security-testing/test-laptop

0 comments on commit 32c384a

Please sign in to comment.