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/.github
diff options
context:
space:
mode:
authorTingluo Huang <tingluohuang@github.com>2022-04-21 10:12:11 -0400
committerGitHub <noreply@github.com>2022-04-21 10:12:11 -0400
commit013b3856ba9ad25709645c555998be6313f542b3 (patch)
tree58f72d63e8dbe42f00aae96a6ba3140c11a41a81 /.github
parent47d502ed80d427575b8b4f55f7aaeb7572cfe5db (diff)
Add set-safe-directory input to allow customers to take control. (#770) (#776)
* Add set-safe-directory input to allow customers to take control.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 87360d3..3607f59 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -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
+ uses: actions/checkout@v3
+ with:
+ path: v3 \ No newline at end of file