From 5788a1cff67bc88d6c641b0988fae83150df8e35 Mon Sep 17 00:00:00 2001 From: yiyiyimu Date: Sat, 15 May 2021 10:23:01 -0400 Subject: [PATCH 1/3] ci: fix gitleaks not allowed running Signed-off-by: yiyiyimu --- .github/actions/gitleaks-action | 1 + .github/workflows/gitleaks.yml | 2 +- .gitmodules | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 .github/actions/gitleaks-action diff --git a/.github/actions/gitleaks-action b/.github/actions/gitleaks-action new file mode 160000 index 0000000000..518e4898c0 --- /dev/null +++ b/.github/actions/gitleaks-action @@ -0,0 +1 @@ +Subproject commit 518e4898c0cd1cc5d9aab6627a2eabd46e81d8da diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index cec566257e..8800ac7a61 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -26,4 +26,4 @@ jobs: with: args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml - name: gitleaks-action - uses: zricethezav/gitleaks-action@master + uses: ./.github/actions/gitleaks-action diff --git a/.gitmodules b/.gitmodules index 10d55dcd99..8b4725e1d5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".github/actions/cancel-workflow-runs"] path = .github/actions/cancel-workflow-runs url = https://github.com/potiuk/cancel-workflow-runs +[submodule ".github/actions/gitleaks-action"] + path = .github/actions/gitleaks-action + url = https://github.com/zricethezav/gitleaks-action From b068a753e4b63f85b49ac31f0213ef1b8212929a Mon Sep 17 00:00:00 2001 From: yiyiyimu Date: Sun, 16 May 2021 21:47:50 -0400 Subject: [PATCH 2/3] remove wget actions Signed-off-by: yiyiyimu --- .github/workflows/gitleaks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 8800ac7a61..e4becee8a0 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -22,8 +22,8 @@ jobs: with: fetch-depth: '1' - name: wget - uses: wei/wget@v1.1.1 - with: - args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml + shell: bash + run: | + wget https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml - name: gitleaks-action uses: ./.github/actions/gitleaks-action From 4f479304b664d733d2a6d7a1a31632de803d4df7 Mon Sep 17 00:00:00 2001 From: yiyiyimu Date: Sun, 16 May 2021 21:49:58 -0400 Subject: [PATCH 3/3] checkout recursive Signed-off-by: yiyiyimu --- .github/workflows/gitleaks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index e4becee8a0..03328399bd 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -21,6 +21,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: '1' + submodules: recursive - name: wget shell: bash run: |