Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github actions: use safe.directory for actions invoking git #15270

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Apr 19, 2022

Summary of changes

PRs from today started failing, with git error. I am creating this pull request to reproduce the error and attempt to fix it within this PR.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[x] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@mergify mergify bot added the do not merge label Apr 19, 2022
@0xc0170 0xc0170 force-pushed the fix-test-github-action-git-failure branch from c400ad6 to d46ef3e Compare April 19, 2022 15:59
@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Apr 19, 2022
@ciarmcom
Copy link
Member

@0xc0170, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor Author

0xc0170 commented Apr 19, 2022

actions/checkout#766 - related

@0xc0170 0xc0170 force-pushed the fix-test-github-action-git-failure branch 3 times, most recently from 1a5f739 to e86965c Compare April 20, 2022 09:59
See actions/checkout#762
Our tests are failing as checkout is not working (no git repository found)
Where we use git commands directly, we need to add safe directory. This is because
the recent git changes introduced, for details visit:
actions/checkout#766
@0xc0170 0xc0170 force-pushed the fix-test-github-action-git-failure branch from b455f9f to ad15f0a Compare April 20, 2022 10:18
@0xc0170 0xc0170 changed the title WIP: Testing Github actions failing with git error Github actions: use safe.directory for actions invoking git Apr 20, 2022
@0xc0170
Copy link
Contributor Author

0xc0170 commented Apr 20, 2022

CI started

@mbedmain mbedmain added release-version: 6.16.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Jun 14, 2022
jeromecoutant added a commit to ARMmbed/stm32customtargets that referenced this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants