Repository navigation
Adding maven auth support #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a3e6ce2
56b5af7
56eacf9
86e8938
1b04170
b0e5cf2
dc5f78f
2432735
b8a0027
4450e92
18983b8
4954095
1085a2b
c8f8a26
7d69f80
d1d9006
cda418e
d2eada3
ade090c
210fba7
d5150a6
c1c11bb
bfbec53
12896df
96236d7
2b05c00
948db75
7970453
1dac4fe
5e29577
8940139
4b6ff8c
540a98a
dbeab7c
b7e7041
6ae690c
f33acc6
ddf78ad
70aff31
2f85cc5
203550b
8ccac94
9d56a3b
551e2a2
4757680
ae11e1a
ce88fee
2e749e5
998be8d
6924f73
1bba665
0e5545e
7e36086
c05b45b
2ccd1ad
9b11fe4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
username and password are required from within the auth module now. Update the tests to ensure this is the case.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,7 @@ async function run() { | |
| const username = core.getInput('username', {required: false}); | ||
| const password = core.getInput('password', {required: false}); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might want to set core.setSecret(password);See https://github.com/actions/toolkit/tree/master/packages/core#setting-a-secret
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If they are storing the password in the file unencrypted it makes no difference if it is masked in the logs.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And... someone only now shared with me that we can use env variables within the So a generic settings file like so might work and we won't need to save the token into it. <servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
clarkbw marked this conversation as resolved.
Outdated
|
||
|
|
||
| if (username && password) { | ||
| await auth.configAuthentication(username, password); | ||
| } | ||
| await auth.configAuthentication(username, password); | ||
|
konradpabjan marked this conversation as resolved.
Outdated
|
||
|
|
||
| const matchersPath = path.join(__dirname, '..', '.github'); | ||
| console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.