Skip to content

Commit 25af425

Browse files
committed
feat(provider): update error formatting
1 parent ff17e84 commit 25af425

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/run/run_environment/github_actions/provider.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ impl RunEnvironmentProvider for GitHubActionsProvider {
282282
// Check if a static token is already set
283283
if config.token.is_some() {
284284
info!(
285-
"CodSpeed now supports OIDC tokens for authentication.\n
286-
Benefit from enhanced security by adding the `id-token: write` permission to your workflow and removing the static token from your configuration.\n
285+
"CodSpeed now supports OIDC tokens for authentication.\n\
286+
Benefit from enhanced security by adding the `id-token: write` permission to your workflow and removing the static token from your configuration.\n\
287287
Learn more at https://codspeed.io/docs/integrations/ci/github-actions#openid-connect-oidc-authentication"
288288
);
289289

@@ -303,15 +303,15 @@ impl RunEnvironmentProvider for GitHubActionsProvider {
303303

304304
if self.is_repository_private {
305305
bail!(
306-
"Unable to retrieve OIDC token for authentication. \n
307-
Make sure your workflow has the `id-token: write` permission set. \n
306+
"Unable to retrieve OIDC token for authentication. \n\
307+
Make sure your workflow has the `id-token: write` permission set. \n\
308308
See https://codspeed.io/docs/integrations/ci/github-actions#openid-connect-oidc-authentication"
309309
)
310310
}
311311

312312
info!(
313-
"CodSpeed now supports OIDC tokens for authentication.\n
314-
Benefit from enhanced security and faster processing times by adding the `id-token: write` permission to your workflow.\n
313+
"CodSpeed now supports OIDC tokens for authentication.\n\
314+
Benefit from enhanced security and faster processing times by adding the `id-token: write` permission to your workflow.\n\
315315
Learn more at https://codspeed.io/docs/integrations/ci/github-actions#openid-connect-oidc-authentication"
316316
);
317317

@@ -341,8 +341,8 @@ impl RunEnvironmentProvider for GitHubActionsProvider {
341341
config.set_token(token);
342342
} else if self.is_repository_private {
343343
bail!(
344-
"Unable to retrieve OIDC token for authentication. \n
345-
Make sure your workflow has the `id-token: write` permission set. \n
344+
"Unable to retrieve OIDC token for authentication. \n\
345+
Make sure your workflow has the `id-token: write` permission set. \n\
346346
See https://codspeed.io/docs/integrations/ci/github-actions#openid-connect-oidc-authentication"
347347
)
348348
} else {

0 commit comments

Comments
 (0)