Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-auth-helper.ts
AgeCommit message (Collapse)Author
2025-12-01Add worktree support for persist-credentials includeIf (#2327)eric sciple
2025-11-03Persist creds to a separate file (#2286)eric sciple
2024-04-24Update NPM dependencies (#1703)Cory Miller
* Update dependencies manually * Format files * Update licenses
2023-03-24Add new public key for known_hosts (#1237)v3.5.0Cameron Booth
* Add new public key for known_hosts * Fix the build!
2022-11-15wrap pipeline commands for submoduleForeach in quotes (#964)Jok
* wrap pipeline commands for submoduleForeach in quotes * Update src/git-auth-helper.ts drop extraneous space. Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * Followed CONTRIBUTING.md instructions, updating dist/index.js * fixed package-lock.json * updating the pipeline so it runs from sh Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-09-26Inject GitHub host to be able to clone from another GitHub instance (#922)Peter Murray
* Adding the ability to specify the GitHub Server URL and allowing for it to differ from the Actions workflow host * Adding tests for injecting the GitHub URL * Addressing code review comments for PR #922
2022-04-20Add set-safe-directory input to allow customers to take control. (#770)Tingluo Huang
* Add set-safe-directory input to allow customers to take control.
2022-04-14Enforce safe directory (#762)v3.0.1Thomas Boop
* set safe directory when running checkout * Update CHANGELOG.md
2021-11-01set insteadOf url for org-id (#621)v2.4.0eric sciple
2021-10-19update dev dependencies and react to new linting rules (#611)eric sciple
2020-11-03Add missing `await`s (#379)v2.3.4Johannes Schindelin
* auth-helper: properly await replacement of the token value in the config After writing the `.extraheader` config, we manually replace the token with the actual value. This is done in an `async` function, but we were not `await`ing the result. In our tests, this commit fixes a flakiness we observed where `remote.origin.url` sometimes (very rarely, actually) is not set for submodules. Our interpretation is that the configs are in the process of being rewritten with the correct token value _while_ another `git config` that wants to set the `insteadOf` value is reading the config, which is currently empty. A more idiomatic way to fix this in Typescript would use `Promise.all()`, like this: await Promise.all( configPaths.map(async configPath => { core.debug(`Replacing token placeholder in '${configPath}'`) await this.replaceTokenPlaceholder(configPath) }) ) However, during review of https://github.com/actions/checkout/pull/379 it was decided to keep the `for` loop in the interest of simplicity. Reported by Ian Lynagh. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> * downloadRepository(): await the result of recursive deletions Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> * Ask ESLint to report floating Promises This rule is quite helpful in avoiding hard-to-debug missing `await`s. Note: there are two locations in `src/main.ts` that trigger warnings: the `run()` and the `cleanup()` function are called without `await` and without any `.catch()` clause. In the initial version of https://github.com/actions/checkout/pull/379, this was addressed by adding `.catch()` clauses. However, it was determined that this is boilerplate code that will need to be fixed in a broader way. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> * Rebuild This trick was brought to you by `npm ci && npm run build`. Needed to get the PR build to pass. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-03-27group output (#191)v2.1.0eric sciple
2020-03-25changes to support ghes alpha release (#199)eric sciple
2020-03-12persist core.sshCommand for submodules (#184)eric sciple
* persist core.sshCommand for submodules * update verbiage; add comments * fail when submodules or ssh-key and fallback to REST API
2020-03-11add ssh support (#163)eric sciple
2020-03-10convert SSH URL to HTTPS (#179)eric sciple
2020-03-05add support for submodules (#173)eric sciple
2020-03-02more unit tests and corresponding refactoring (#174)eric sciple