(token: string)
| 142 | } |
| 143 | |
| 144 | async configureToken(token: string): Promise<void> { |
| 145 | // Encode and configure the basic credential for HTTPS access |
| 146 | const basicCredential = Buffer.from( |
| 147 | `x-access-token:${token}`, |
| 148 | 'utf8' |
| 149 | ).toString('base64') |
| 150 | core.setSecret(basicCredential) |
| 151 | const extraheaderConfigValue = `AUTHORIZATION: basic ${basicCredential}` |
| 152 | await this.setExtraheaderConfig(extraheaderConfigValue) |
| 153 | } |
| 154 | |
| 155 | async removeAuth(): Promise<void> { |
| 156 | await this.getAndUnset() |
no test coverage detected