-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add set-safe-directory input to allow customer to take control. #770
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,3 +205,41 @@ jobs: | |
path: basic | ||
- name: Verify basic | ||
run: __test__/verify-basic.sh --archive | ||
|
||
test-git-container: | ||
runs-on: ubuntu-latest | ||
container: bitnami/git:latest | ||
steps: | ||
# Clone this repo | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: v3 | ||
|
||
# Basic checkout using git | ||
- name: Checkout basic | ||
uses: ./v3 | ||
with: | ||
ref: test-data/v2/basic | ||
- name: Verify basic | ||
run: | | ||
if [ ! -f "./basic-file.txt" ]; then | ||
echo "Expected basic file does not exist" | ||
exit 1 | ||
fi | ||
|
||
# Verify .git folder | ||
if [ ! -d "./.git" ]; then | ||
echo "Expected ./.git folder to exist" | ||
exit 1 | ||
fi | ||
|
||
# Verify auth token | ||
git config --global --add safe.directory "*" | ||
git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main | ||
|
||
# needed to make checkout post cleanup succeed | ||
- name: Fix Checkout v3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we running this again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the second checkout will wipe the initial checkout and cause post-cleanup to fail... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe i can do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it doesn't work... 😢 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lets add a quick comment if we can just to say There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. จัดการได้ตามความเหมาะสม เห็นชอบ ของชุมชน |
||
uses: actions/checkout@v3 | ||
with: | ||
path: v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will have e2e coverage on any newer git version release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
มันน่าจะดีมากขึ้นไปอีก ผมเคารพการตัดสินใจของชุมชน