|
| 1 | +# Snapshot report for `tests/index.js` |
| 2 | + |
| 3 | +The actual snapshot is saved in `index.js.snap`. |
| 4 | + |
| 5 | +Generated by [AVA](https://avajs.dev). |
| 6 | + |
| 7 | +## action-deprecated-inputs.test.js |
| 8 | + |
| 9 | +> stderr |
| 10 | +
|
| 11 | + '' |
| 12 | + |
| 13 | +> stdout |
| 14 | +
|
| 15 | + `app_id — 'app_id' is deprecated and will be removed in a future version. Use 'app-id' instead.␊ |
| 16 | + kms_key_id — 'kms_key_id' is deprecated and will be removed in a future version. Use 'kms-key-id' instead.␊ |
| 17 | + skip_token_revoke — 'skip_token_revoke' is deprecated and will be removed in a future version. Use 'skip-token-revoke' instead.` |
| 18 | + |
| 19 | +## main-custom-github-api-url.test.js |
| 20 | + |
| 21 | +> stderr |
| 22 | +
|
| 23 | + 'Error signing JWT: Region is missing' |
| 24 | + |
| 25 | +> stdout |
| 26 | +
|
| 27 | + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ |
| 28 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 29 | + ␊ |
| 30 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 31 | + ␊ |
| 32 | + ::set-output name=installation-id::123456␊ |
| 33 | + ␊ |
| 34 | + ::set-output name=app-slug::github-actions␊ |
| 35 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 36 | + ::save-state name=expiresAt::` |
| 37 | + |
| 38 | +## main-missing-app-id.test.js |
| 39 | + |
| 40 | +> stderr |
| 41 | +
|
| 42 | + 'Input required and not supplied: app-id' |
| 43 | + |
| 44 | +> stdout |
| 45 | +
|
| 46 | + '' |
| 47 | + |
| 48 | +## main-missing-kms-key-id.test.js |
| 49 | + |
| 50 | +> stderr |
| 51 | +
|
| 52 | + 'Input required and not supplied: kms-key-id' |
| 53 | + |
| 54 | +> stdout |
| 55 | +
|
| 56 | + '' |
| 57 | + |
| 58 | +## main-missing-owner.test.js |
| 59 | + |
| 60 | +> stderr |
| 61 | +
|
| 62 | + 'GITHUB_REPOSITORY_OWNER missing, must be set to \'<owner>\'' |
| 63 | + |
| 64 | +> stdout |
| 65 | +
|
| 66 | + '' |
| 67 | + |
| 68 | +## main-missing-private-key.test.js |
| 69 | + |
| 70 | +> stderr |
| 71 | +
|
| 72 | + 'Input required and not supplied: kms-key-id' |
| 73 | + |
| 74 | +> stdout |
| 75 | +
|
| 76 | + '' |
| 77 | + |
| 78 | +## main-missing-repository.test.js |
| 79 | + |
| 80 | +> stderr |
| 81 | +
|
| 82 | + 'GITHUB_REPOSITORY missing, must be set to \'<owner>/<repo>\'' |
| 83 | + |
| 84 | +> stdout |
| 85 | +
|
| 86 | + '' |
| 87 | + |
| 88 | +## main-token-get-installation-access-token-fail-response.test.js |
| 89 | + |
| 90 | +> stderr |
| 91 | +
|
| 92 | + 'Error signing JWT: Region is missing' |
| 93 | + |
| 94 | +> stdout |
| 95 | +
|
| 96 | + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ |
| 97 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 98 | + ␊ |
| 99 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 100 | + ␊ |
| 101 | + ::set-output name=installation-id::123456␊ |
| 102 | + ␊ |
| 103 | + ::set-output name=app-slug::github-actions␊ |
| 104 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 105 | + ::save-state name=expiresAt::` |
| 106 | + |
| 107 | +## main-token-get-owner-set-repo-fail-response.test.js |
| 108 | + |
| 109 | +> stderr |
| 110 | +
|
| 111 | + 'Error signing JWT: Region is missing' |
| 112 | + |
| 113 | +> stdout |
| 114 | +
|
| 115 | + `owner and repositories set, creating token for repositories "failed-repo" owned by "actions"␊ |
| 116 | + Failed to create token for "failed-repo" (attempt 1): GitHub API not available␊ |
| 117 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 118 | + ␊ |
| 119 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 120 | + ␊ |
| 121 | + ::set-output name=installation-id::123456␊ |
| 122 | + ␊ |
| 123 | + ::set-output name=app-slug::github-actions␊ |
| 124 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 125 | + ::save-state name=expiresAt::` |
| 126 | + |
| 127 | +## main-token-get-owner-set-repo-set-to-many.test.js |
| 128 | + |
| 129 | +> stderr |
| 130 | +
|
| 131 | + 'Error signing JWT: Region is missing' |
| 132 | + |
| 133 | +> stdout |
| 134 | +
|
| 135 | + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws,actions/toolkit" owned by "lepadatu-actions"␊ |
| 136 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 137 | + ␊ |
| 138 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 139 | + ␊ |
| 140 | + ::set-output name=installation-id::123456␊ |
| 141 | + ␊ |
| 142 | + ::set-output name=app-slug::github-actions␊ |
| 143 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 144 | + ::save-state name=expiresAt::` |
| 145 | + |
| 146 | +## main-token-get-owner-set-repo-set-to-one.test.js |
| 147 | + |
| 148 | +> stderr |
| 149 | +
|
| 150 | + 'Error signing JWT: Region is missing' |
| 151 | + |
| 152 | +> stdout |
| 153 | +
|
| 154 | + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ |
| 155 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 156 | + ␊ |
| 157 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 158 | + ␊ |
| 159 | + ::set-output name=installation-id::123456␊ |
| 160 | + ␊ |
| 161 | + ::set-output name=app-slug::github-actions␊ |
| 162 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 163 | + ::save-state name=expiresAt::` |
| 164 | + |
| 165 | +## main-token-get-owner-set-to-org-repo-unset.test.js |
| 166 | + |
| 167 | +> stderr |
| 168 | +
|
| 169 | + 'Error signing JWT: Region is missing' |
| 170 | + |
| 171 | +> stdout |
| 172 | +
|
| 173 | + `repositories not set, creating token for all repositories for given owner "lepadatu-actions"␊ |
| 174 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 175 | + ␊ |
| 176 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 177 | + ␊ |
| 178 | + ::set-output name=installation-id::123456␊ |
| 179 | + ␊ |
| 180 | + ::set-output name=app-slug::github-actions␊ |
| 181 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 182 | + ::save-state name=expiresAt::` |
| 183 | + |
| 184 | +## main-token-get-owner-set-to-user-fail-response.test.js |
| 185 | + |
| 186 | +> stderr |
| 187 | +
|
| 188 | + 'Error signing JWT: Region is missing' |
| 189 | + |
| 190 | +> stdout |
| 191 | +
|
| 192 | + `repositories not set, creating token for all repositories for given owner "smockle"␊ |
| 193 | + Failed to create token for "smockle" (attempt 1): GitHub API not available␊ |
| 194 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 195 | + ␊ |
| 196 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 197 | + ␊ |
| 198 | + ::set-output name=installation-id::123456␊ |
| 199 | + ␊ |
| 200 | + ::set-output name=app-slug::github-actions␊ |
| 201 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 202 | + ::save-state name=expiresAt::` |
| 203 | + |
| 204 | +## main-token-get-owner-set-to-user-repo-unset.test.js |
| 205 | + |
| 206 | +> stderr |
| 207 | +
|
| 208 | + 'Error signing JWT: Region is missing' |
| 209 | + |
| 210 | +> stdout |
| 211 | +
|
| 212 | + `repositories not set, creating token for all repositories for given owner "smockle"␊ |
| 213 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 214 | + ␊ |
| 215 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 216 | + ␊ |
| 217 | + ::set-output name=installation-id::123456␊ |
| 218 | + ␊ |
| 219 | + ::set-output name=app-slug::github-actions␊ |
| 220 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 221 | + ::save-state name=expiresAt::` |
| 222 | + |
| 223 | +## main-token-get-owner-unset-repo-set.test.js |
| 224 | + |
| 225 | +> stderr |
| 226 | +
|
| 227 | + 'Error signing JWT: Region is missing' |
| 228 | + |
| 229 | +> stdout |
| 230 | +
|
| 231 | + `owner not set, creating owner for given repositories "lepadatu-actions/create-github-app-token-aws" in current owner ("lepadatu-actions")␊ |
| 232 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 233 | + ␊ |
| 234 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 235 | + ␊ |
| 236 | + ::set-output name=installation-id::123456␊ |
| 237 | + ␊ |
| 238 | + ::set-output name=app-slug::github-actions␊ |
| 239 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 240 | + ::save-state name=expiresAt::` |
| 241 | + |
| 242 | +## main-token-get-owner-unset-repo-unset.test.js |
| 243 | + |
| 244 | +> stderr |
| 245 | +
|
| 246 | + 'Error signing JWT: Region is missing' |
| 247 | + |
| 248 | +> stdout |
| 249 | +
|
| 250 | + `owner and repositories not set, creating token for the current repository ("create-github-app-token-aws")␊ |
| 251 | + ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 252 | + ␊ |
| 253 | + ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 254 | + ␊ |
| 255 | + ::set-output name=installation-id::123456␊ |
| 256 | + ␊ |
| 257 | + ::set-output name=app-slug::github-actions␊ |
| 258 | + ::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ |
| 259 | + ::save-state name=expiresAt::` |
| 260 | + |
| 261 | +## post-revoke-token-fail-response.test.js |
| 262 | + |
| 263 | +> stderr |
| 264 | +
|
| 265 | + '' |
| 266 | + |
| 267 | +> stdout |
| 268 | +
|
| 269 | + '::warning::Token revocation failed: ' |
| 270 | + |
| 271 | +## post-token-expired.test.js |
| 272 | + |
| 273 | +> stderr |
| 274 | +
|
| 275 | + '' |
| 276 | + |
| 277 | +> stdout |
| 278 | +
|
| 279 | + 'Token expired, skipping token revocation' |
| 280 | + |
| 281 | +## post-token-set.test.js |
| 282 | + |
| 283 | +> stderr |
| 284 | +
|
| 285 | + '' |
| 286 | + |
| 287 | +> stdout |
| 288 | +
|
| 289 | + 'Token revoked' |
| 290 | + |
| 291 | +## post-token-skipped.test.js |
| 292 | + |
| 293 | +> stderr |
| 294 | +
|
| 295 | + '' |
| 296 | + |
| 297 | +> stdout |
| 298 | +
|
| 299 | + 'Token revocation was skipped' |
| 300 | + |
| 301 | +## post-token-unset.test.js |
| 302 | + |
| 303 | +> stderr |
| 304 | +
|
| 305 | + '' |
| 306 | + |
| 307 | +> stdout |
| 308 | +
|
| 309 | + 'Token is not set' |
0 commit comments