Skip to content

Commit d173d59

Browse files
LUAFDN-1603 - add support for auth format for artifactory use (#72)
Some roblox internal tools host builds on artifactory rather than via GitHub/GitLab. This is the first step towards supporting artifactory as a target for binary releases. The auth format used will be standardized across several internal tools, so the schema is included for posterity and used to validate the example in the tests.
1 parent b8db178 commit d173d59

File tree

6 files changed

+262
-28
lines changed

6 files changed

+262
-28
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
strategy:
2929
matrix:
30-
rust_version: [stable, "1.53.0"]
30+
rust_version: [stable, "1.60.0"]
3131

3232
steps:
3333
- uses: actions/checkout@v2

Cargo.lock

Lines changed: 90 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ zip = "0.5"
3434
assert_cmd = "2.0.2"
3535
insta = "1.14"
3636
tempfile = "3.3.0"
37+
jsonschema-valid = "0.5.1"

resources/artiaa-format.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"type": "object",
4+
"title": "ArtiAA Token File Format",
5+
"description": "This is the format of the ArtiAA Token File, a standard output that contains the Artifactory tokens for the user. ",
6+
"properties": {
7+
"tokens": {
8+
"title": "Tokens URL Map",
9+
"description": "Map of URLs and the credentials that apply to them.\nThe key of each value is the base domain URL the credential applies to, such as 'artifactory.rbx.com'.\nArtiAA will add an entry for each URL it has been logged into.",
10+
"type": "object",
11+
"additionalProperties": {
12+
"title": "URL Token Element",
13+
"type": "object",
14+
"properties": {
15+
"username": {
16+
"title": "Username",
17+
"description": "The username to use for accessing the server, if a username is necessary.\nMay be an empty string.",
18+
"type": "string"
19+
},
20+
"token": {
21+
"title": "Token",
22+
"description": "The token to use for accessing the server.",
23+
"type": "string"
24+
}
25+
},
26+
"additionalProperties": false
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)