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
|`db-server-name`| true | N/A | The server where the dependency files will be run. |
21
-
|`db-name`| true | N/A | The name of the database where the dependency files will run. |
22
-
|`dependency-list`| true | N/A | A json string containing a list of objects with the name of the dependency package, the version, and the url where the package is stored. |
23
-
|`use-integrated-security`| true | false | Use domain integrated security. If false, a db-username and db-password should be specified. If true, those parameters will be ignored if specified. |
24
-
|`db-username`| false | N/A | The username to use to login to the database. This is required if use-integrated-security is false, otherwise it's optional and will be ignored. |
25
-
|`db-password`| false | N/A | The password for the user logging in to the database. This is required if use-integrated-security is false, otherwise it's optional and will be ignored. |
18
+
| Parameter | Is Required | Default | Description |
|`db-server-name`| true | N/A | The server where the dependency files will be run. |
21
+
|`db-name`| true | N/A | The name of the database where the dependency files will run. |
22
+
|`dependency-list`| true | N/A | A json string containing a list of objects with the name of the dependency package, the version,the url where the package is stored, and optionally the auth token needed to download the package. |
23
+
|`use-integrated-security`| true | false | Use domain integrated security. If false, a db-username and db-password should be specified. If true, those parameters will be ignored if specified. |
24
+
|`db-username`| false | N/A | The username to use to login to the database. This is required if use-integrated-security is false, otherwise it's optional and will be ignored. |
25
+
|`db-password`| false | N/A | The password for the user logging in to the database. This is required if use-integrated-security is false, otherwise it's optional and will be ignored. |
26
+
|`trust-server-certificate`| false | false | A boolean that controls whether or not to validate the SQL Server TLS certificate. |
26
27
27
28
The `dependency-list` should be an array of objects with the following properties:
28
29
29
30
```json
30
31
{
31
32
"version": "1.0.0",
32
33
"packageName": "some_package",
33
-
"nugetUrl": "https://www.some-nuget-repo.com"
34
+
"nugetUrl": "https://www.some-nuget-repo.com",
35
+
"authToken": "ghp_fdijlfdsakeizdkliejfezejw"
34
36
}
35
37
```
36
38
39
+
**Notes**
40
+
* The `authToken` property is optionally used for nuget sources that require a bearer token, such as GitHub Packages. It should not be included if it is unnecessary.
41
+
* The `nugetUrl` for GitHub Packages can be pretty tricky to lookup, so for reference the pattern is as follows: `https://nuget.pkg.github.com/<owner>/download/<package-name>/<version>/<file-name>.nupkg`. Here's an example of how that could look if this repo were publishing a package called `MyDbObject`: `https://nuget.pkg.github.com/im-open/download/MyDbObject/1.0.0/MyDbObject.1.0.0.nupkg`.
42
+
37
43
## Example
38
44
39
45
```yml
@@ -50,11 +56,12 @@ jobs:
50
56
51
57
- name: Download and Run Dependencies
52
58
# You may also reference the major or major.minor version
Copy file name to clipboardExpand all lines: action.yml
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ inputs:
10
10
description: The name of the database where the dependency files will run.
11
11
required: true
12
12
dependency-list:
13
-
description: A json string containing a list of objects with the name of the dependency package, the version, and the url where the package is stored.
13
+
description: A json string containing a list of objects with the name of the dependency package, the version,the url where the package is stored, and optionally the auth token needed to download the package.
14
14
required: true
15
15
use-integrated-security:
16
16
description: Use domain integrated security. If false, a db-username and db-password should be specified. If true, those parameters will be ignored if specified.
@@ -22,6 +22,10 @@ inputs:
22
22
db-password:
23
23
description: The password for the user logging in to the database. This is required if use-integrated-security is false, otherwise it's optional and will be ignored.
24
24
required: false
25
+
trust-server-certificate:
26
+
description: A boolean that controls whether or not to validate the SQL Server TLS certificate.
0 commit comments