From 921713518d65322ff65afca67c775e6627af0bdc Mon Sep 17 00:00:00 2001 From: Jacobo de Vera Date: Sat, 20 Jul 2024 01:11:41 +0100 Subject: [PATCH] Log the start of each run with its parameters But do not show secrets. --- src/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.js b/src/index.js index 3d84e64..e3a1df7 100644 --- a/src/index.js +++ b/src/index.js @@ -130,6 +130,16 @@ async function main() { const dryRun = ['1', 'true'].includes(process.env.DRY_RUN); + console.log("Starting with the following configuration:") + console.log(` - GITHUB_USERNAME: ${githubUsername}`); + console.log(` - GITHUB_TOKEN: ${githubToken ? '****' : ''}`); + console.log(` - GITEA_URL: ${giteaUrl}`); + console.log(` - GITEA_TOKEN: ${giteaToken ? '****' : ''}`); + console.log(` - MIRROR_PRIVATE_REPOSITORIES: ${mirrorPrivateRepositories}`); + console.log(` - SKIP_FORKS: ${!mirrorForks}`); + console.log(` - DRY_RUN: ${dryRun}`); + + const githubRepositories = await getGithubRepositories(githubUsername, githubToken, mirrorPrivateRepositories, mirrorForks); console.log(`Found ${githubRepositories.length} repositories on github`);