You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-3Lines changed: 36 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,27 @@ This script will detect the operating system and architecture and puts deepsourc
41
41
In order to report test-coverage to DeepSource using the `report` command, an environment variable named as `DEEPSOURCE_DSN` has to
42
42
be set. It's value will be available under 'Settings' tab of the repository page.
43
43
44
+
## Authentication
45
+
46
+
Log in to DeepSource using the CLI:
47
+
48
+
```sh
49
+
# Browser-based login (interactive)
50
+
deepsource auth login
51
+
52
+
# Token-based login (for CI/CD or non-interactive environments)
53
+
deepsource auth login --with-token
54
+
55
+
# For DeepSource Enterprise instances
56
+
deepsource auth login --hostname HOSTNAME
57
+
```
58
+
59
+
For GitHub Actions, the `report` command supports [OIDC authentication](https://docs.deepsource.com/docs/guides/setup-test-coverage#with-github-actions-ci-using-oidc):
60
+
61
+
```sh
62
+
deepsource report --analyzer test-coverage --key go --value-file ./cover.out --use-oidc
63
+
```
64
+
44
65
## Usage
45
66
46
67
The CLI provides access to a wide range of commands. Here is a list of the
@@ -52,10 +73,22 @@ Usage:
52
73
53
74
Available commands are:
54
75
auth Authenticate with DeepSource
76
+
login Log in to DeepSource
77
+
logout Logout of your account
78
+
refresh Refresh authentication credentials
79
+
status View authentication status
80
+
55
81
config Generate and Validate DeepSource config
56
-
help Help about any command
57
-
issues Show the list of issues in a file in a repository
58
-
repo Operations related to the project repository
82
+
generate Generate .deepsource.toml config
83
+
validate Validate existing config
84
+
85
+
issues Show the list of issues in a repository
86
+
list List issues (supports --json, --csv, --sarif export)
0 commit comments