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: working/templates/SharedItems/.github/workflows/basic.yml
+3-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ jobs:
29
29
if [[ -z "${{ secrets.DATAMINER_TOKEN }}" ]]; then
30
30
echo "Error: DATAMINER_TOKEN is not set. Release not possible!"
31
31
echo "Please create or re-use an admin.dataminer.services token by visiting: https://admin.dataminer.services/."
32
-
echo "Navigate to the right Organization then go to Keys and create/find a key with permissions to Register Catalog Items."
32
+
echo "Navigate to the right Organization then go to Keys and create/find a key with permissions to Register catalog items, Download catalog versions and Read catalog items."
Copy file name to clipboardexpand all lines: working/templates/SharedItems/.github/workflows/complete.yml
+3-2
Original file line number
Diff line number
Diff line change
@@ -29,5 +29,6 @@ jobs:
29
29
sonarCloudProjectName: ${{ vars.SONAR_NAME }} # Go to 'https://sonarcloud.io/projects/create' and create a project. Then create a SONAR_NAME variable with the ID of the project as mentioned in the SonarCloud project URL.
30
30
# solutionFilterName: "MySolutionFilter.slnf"
31
31
secrets:
32
-
dataminerToken: ${{ secrets.DATAMINER_TOKEN }} # The API key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System.
33
-
sonarCloudToken: ${{ secrets.SONAR_TOKEN }} # The API key for access to SonarCloud.
32
+
dataminerToken: ${{ secrets.DATAMINER_TOKEN }} # The API key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain organization.
33
+
sonarCloudToken: ${{ secrets.SONAR_TOKEN }} # The API key for access to SonarCloud.
34
+
# overrideCatalogDownloadToken: ${{ secrets.OVERRIDE_DATAMINER_TOKEN }} # Override on the dataminerToken for downloading Catalog items: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain organization.
Copy file name to clipboardexpand all lines: working/templates/SharedItems/SkylineDevopsHelp/GettingStarted.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,9 @@ You can publish your artifact either manually via the Visual Studio IDE or by se
42
42
### Manual Publishing
43
43
44
44
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
45
-
-**Register Catalog items**
46
-
-**Read Catalog items**
45
+
-**Register catalog items**
46
+
-**Read catalog items**
47
+
-**Download catalog versions**
47
48
48
49
1. Securely store the key using Visual Studio User Secrets:
49
50
@@ -55,7 +56,7 @@ You can publish your artifact either manually via the Visual Studio IDE or by se
55
56
{
56
57
"skyline": {
57
58
"sdk": {
58
-
"catalogpublishtoken": "MyKeyHere"
59
+
"dataminertoken": "MyKeyHere"
59
60
}
60
61
}
61
62
}
@@ -110,8 +111,9 @@ Follow these steps to set it up:
110
111
You can use the links from the actual error to better address the next couple of steps.
111
112
112
113
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
113
-
-**Register Catalog items**
114
-
-**Read Catalog items**
114
+
-**Register catalog items**
115
+
-**Read catalog items**
116
+
-**Download catalog versions**
115
117
116
118
1. Add the key as a secret in your GitHub repository, by navigating to **Settings > Secrets and variables > Actions** and creating a secret named `DATAMINER_TOKEN`.
117
119
@@ -153,16 +155,17 @@ You need a **SonarCloud Organization**. If you don’t have one, you can create
153
155
```text
154
156
Error: DATAMINER_TOKEN is not set. Release not possible!
155
157
Please create or re-use an admin.dataminer.services token by visiting: https://admin.dataminer.services/.
156
-
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register Catalog Items.
158
+
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register catalog items, Download catalog versions and Read catalog items.
157
159
Copy the value of the token.
158
160
Then set a DATAMINER_TOKEN secret in your repository settings: **Dynamic Link**
159
161
```
160
162
161
163
You can use the links from the actual error to better address the next couple of steps.
162
164
163
165
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
164
-
-**Register Catalog items**
165
-
-**Read Catalog items**
166
+
-**Register catalog items**
167
+
-**Read catalog items**
168
+
-**Download catalog versions**
166
169
167
170
1. Add the key as a secret in your GitHub repository, by navigating to **Settings > Secrets and variables > Actions** and creating secrets or variables with the required names.
168
171
@@ -172,7 +175,7 @@ The following secrets and variables will have been added to your repository afte
|`DATAMINER_TOKEN`| Secret | Organization key for publishing to the Catalog | Obtain from [admin.dataminer.services](https://admin.dataminer.services/) and add it as a secret. |
178
+
|`DATAMINER_TOKEN`| Secret | Organization key for downloading/publishing from/to the Catalog | Obtain from [admin.dataminer.services](https://admin.dataminer.services/) and add it as a secret. |
176
179
|`SONAR_TOKEN`| Secret | Token for SonarCloud authentication | Obtain from [SonarCloud Security](https://sonarcloud.io/account/security) and add it as a secret. |
177
180
|`SONAR_NAME`| Variable | SonarCloud project ID | Visit [SonarCloud](https://sonarcloud.io/projects/create), copy the project ID, and add it as a variable. |
Copy file name to clipboardexpand all lines: working/templates/automation-library-project/$SCRIPTNAME$.csproj
+2-2
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@
11
11
<Version>1.0.0</Version>
12
12
<VersionComment>Initial Version</VersionComment>
13
13
<!--#if (CreateDataMinerPackage)-->
14
-
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__catalogpublishtoken holding the organization token or a Visual Studio User Secret holding the token. -->
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__dataminertoken holding the organization token or a Visual Studio User Secret holding the token. -->
Copy file name to clipboardexpand all lines: working/templates/automation-project/$SCRIPTNAME$.csproj
+3-3
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@
10
10
<Version>1.0.0</Version>
11
11
<VersionComment>Initial Version</VersionComment>
12
12
<!--#if (CreateDataMinerPackage)-->
13
-
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__catalogpublishtoken holding the organization token or a Visual Studio User Secret holding the token. -->
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__dataminertoken holding the organization token or a Visual Studio User Secret holding the token. -->
Copy file name to clipboardexpand all lines: working/templates/gqi-ad-hoc-data-source-project/$SCRIPTNAME$.csproj
+2-2
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@
10
10
<Version>1.0.0</Version>
11
11
<VersionComment>Initial Version</VersionComment>
12
12
<!--#if (CreateDataMinerPackage)-->
13
-
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__catalogpublishtoken holding the organization token or a Visual Studio User Secret holding the token. -->
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__dataminertoken holding the organization token or a Visual Studio User Secret holding the token. -->
Copy file name to clipboardexpand all lines: working/templates/package-project/$SCRIPTNAME$.csproj
+3-3
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,10 @@
10
10
<Version>1.0.0</Version>
11
11
<VersionComment>Initial Version</VersionComment>
12
12
<!--#if (CreateDataMinerPackage)-->
13
-
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__catalogpublishtoken holding the organization token or a Visual Studio User Secret holding the token. -->
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__dataminertoken holding the organization token or a Visual Studio User Secret holding the token. -->
Copy file name to clipboardexpand all lines: working/templates/package-project/GettingStarted.md
+34-12
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,30 @@ You can right-click the solution and select **Add** and then **New Project**. Th
26
26
Every **Skyline.DataMiner.SDK** project, except other DataMiner package projects, will by default be included within the `.dmapp` created by this project.
27
27
You can customize this behavior using the **PackageContent/ProjectReferences.xml** file. This allows you to add filters to include or exclude projects as needed.
28
28
29
-
<!-- Currently not supported
30
29
### Adding Content from the Catalog
31
30
32
31
You can reference and include additional content from the Catalog using the **PackageContent/CatalogReferences.xml** file provided in this project.
33
-
-->
32
+
33
+
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
34
+
-**Register catalog items**
35
+
-**Read catalog items**
36
+
-**Download catalog versions**
37
+
38
+
1. Securely store the key using Visual Studio User Secrets:
39
+
40
+
1. Right-click the project and select **Manage User Secrets**.
41
+
42
+
1. Add the key in the following format:
43
+
44
+
```json
45
+
{
46
+
"skyline": {
47
+
"sdk": {
48
+
"dataminertoken": "MyKeyHere"
49
+
}
50
+
}
51
+
}
52
+
```
34
53
35
54
### Importing from DataMiner
36
55
@@ -81,8 +100,9 @@ You can publish your artifact manually through Visual Studio or by setting up a
81
100
### Manual Publishing
82
101
83
102
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
84
-
-**Register Catalog items**
85
-
-**Read Catalog items**
103
+
-**Register catalog items**
104
+
-**Read catalog items**
105
+
-**Download catalog versions**
86
106
87
107
1. Securely store the key using Visual Studio User Secrets:
88
108
@@ -94,7 +114,7 @@ You can publish your artifact manually through Visual Studio or by setting up a
94
114
{
95
115
"skyline": {
96
116
"sdk": {
97
-
"catalogpublishtoken": "MyKeyHere"
117
+
"dataminertoken": "MyKeyHere"
98
118
}
99
119
}
100
120
}
@@ -141,16 +161,17 @@ Follow these steps to set it up:
141
161
```text
142
162
Error: DATAMINER_TOKEN is not set. Release not possible!
143
163
Please create or re-use an admin.dataminer.services token by visiting: https://admin.dataminer.services/.
144
-
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register Catalog Items.
164
+
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register catalog items, Download catalog versions and Read catalog items.
145
165
Copy the value of the token.
146
166
Then set a DATAMINER_TOKEN secret in your repository settings: **Dynamic Link**
147
167
```
148
168
149
169
You can use the links from the actual error to better address the next couple of steps.
150
170
151
171
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
152
-
-**Register Catalog items**
153
-
-**Read Catalog items**
172
+
-**Register catalog items**
173
+
-**Read catalog items**
174
+
-**Download catalog versions**
154
175
155
176
1. Add the key as a secret in your GitHub repository, by navigating to **Settings > Secrets and variables > Actions** and creating a secret named `DATAMINER_TOKEN`.
156
177
@@ -191,16 +212,17 @@ You need a **SonarCloud Organization**. If you don’t have one, you can create
191
212
```text
192
213
Error: DATAMINER_TOKEN is not set. Release not possible!
193
214
Please create or re-use an admin.dataminer.services token by visiting: https://admin.dataminer.services/.
194
-
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register Catalog Items.
215
+
Navigate to the right Organization then go to Keys and create/find a key with permissions to Register catalog items, Download catalog versions and Read catalog items..
195
216
Copy the value of the token.
196
217
Then set a DATAMINER_TOKEN secret in your repository settings: **Dynamic Link**
197
218
```
198
219
199
220
You can use the links from the actual error to better address the next couple of steps.
200
221
201
222
1. Obtain an **Organization Key** from [admin.dataminer.services](https://admin.dataminer.services/) with the following scopes:
202
-
-**Register Catalog items**
203
-
-**Read Catalog items**
223
+
-**Register catalog items**
224
+
-**Read catalog items**
225
+
-**Download catalog versions**
204
226
205
227
1. Add the key as a secret in your GitHub repository, by navigating to **Settings > Secrets and variables > Actions** and creating secrets or variables with the required names.
206
228
@@ -210,7 +232,7 @@ The following secrets and variables will have been added to your repository afte
|`DATAMINER_TOKEN`| Secret | Organization key for publishing to the Catalog | Obtain from [admin.dataminer.services](https://admin.dataminer.services/) and add it as a secret. |
235
+
|`DATAMINER_TOKEN`| Secret | Organization key for downloading/publishing from/to the Catalog | Obtain from [admin.dataminer.services](https://admin.dataminer.services/) and add it as a secret. |
214
236
|`SONAR_TOKEN`| Secret | Token for SonarCloud authentication | Obtain from [SonarCloud Security](https://sonarcloud.io/account/security) and add it as a secret. |
215
237
|`SONAR_NAME`| Variable | SonarCloud project ID | Visit [SonarCloud](https://sonarcloud.io/projects/create), copy the project ID, and add it as a variable. |
Copy file name to clipboardexpand all lines: working/templates/user-defined-api-project/$SCRIPTNAME$.csproj
+2-2
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@
10
10
<Version>1.0.0</Version>
11
11
<VersionComment>Initial Version</VersionComment>
12
12
<!--#if (CreateDataMinerPackage)-->
13
-
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__catalogpublishtoken holding the organization token or a Visual Studio User Secret holding the token. -->
<!-- Do NOT fill in the Organization Token here. This points to either an Environment Variable skyline__sdk__dataminertoken holding the organization token or a Visual Studio User Secret holding the token. -->
0 commit comments