Skip to content

Commit 58c7525

Browse files
committed
Update CI workflow to use vendor approach for build
Replaces the previous method of checking out and building from the common repo with a vendor-based approach. The build step now uses 'make build' and references the common scripts as a vendor directory, simplifying the workflow and improving compatibility.
1 parent a6e8d03 commit 58c7525

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,19 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

20-
- name: Checkout common scripts
20+
- name: Checkout common scripts as vendor
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
repository: descope/common
2424
token: ${{ secrets.AUTHZCACHE_TO_COMMON }}
25-
path: common-repo
25+
path: vendor/github.com/descope/common
2626

27-
- name: Debug - List common repo structure
27+
- name: Build using vendor approach
2828
run: |
29-
echo "Checking common-repo structure:"
30-
ls -la common-repo/ || echo "common-repo directory not found"
31-
echo "Checking .github:"
32-
ls -la common-repo/.github/ || echo ".github directory not found"
33-
echo "Checking for actions:"
34-
ls -la common-repo/.github/actions/ || echo "actions directory not found"
35-
echo "Checking for build action:"
36-
ls -la common-repo/.github/actions/build/ || echo "build action not found"
37-
echo "Checking for action.yml:"
38-
ls -la common-repo/.github/actions/build/action.yml || echo "action.yml not found"
39-
40-
- name: Build
41-
uses: ./common-repo/.github/actions/build
42-
with:
43-
go_version: ${{ env.GO_VERSION }}
44-
scripts_folder: ./common-repo/scripts
29+
# Use the traditional vendor approach that works
30+
make build
31+
env:
32+
GO_VERSION: ${{ env.GO_VERSION }}
4533
APP_PEM: ${{ secrets.APP_PEM }}
4634
APP_ID: ${{ secrets.APP_ID }}
4735

0 commit comments

Comments
 (0)