From d792eaf549309bc03d1b69d127b8d368bbf64d39 Mon Sep 17 00:00:00 2001 From: Rohit Ravindra Date: Fri, 26 Jun 2026 23:20:35 +0530 Subject: [PATCH 1/4] build: setup build ci/cd action --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d43b7be --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build Check + +on: + pull_request: + branches: + - main + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Build DevLocal + run: go build . \ No newline at end of file From 0c88289df4d9b4694f4616b5c8d3e4cf33f6b67a Mon Sep 17 00:00:00 2001 From: Rohit Ravindra Date: Fri, 26 Jun 2026 23:23:46 +0530 Subject: [PATCH 2/4] build: failure test --- internal/filesystem/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filesystem/utils.go b/internal/filesystem/utils.go index 35843d0..82e1bfa 100644 --- a/internal/filesystem/utils.go +++ b/internal/filesystem/utils.go @@ -24,7 +24,7 @@ func exists(path string) (bool, error) { func LoadDevlocalConfig() (*config.DevlocalConfigYaml, error) { data, err := os.ReadFile(filepath.Join(config.PROJECT_ROOT, config.CONFIG_FILE_NAME)) - + var x if err != nil { return nil, err } From 1162f35653b48b1eb259f6deb2f39c11078a28f8 Mon Sep 17 00:00:00 2001 From: Rohit Ravindra Date: Fri, 26 Jun 2026 23:37:01 +0530 Subject: [PATCH 3/4] build: pipeline action working --- internal/filesystem/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filesystem/utils.go b/internal/filesystem/utils.go index 82e1bfa..35843d0 100644 --- a/internal/filesystem/utils.go +++ b/internal/filesystem/utils.go @@ -24,7 +24,7 @@ func exists(path string) (bool, error) { func LoadDevlocalConfig() (*config.DevlocalConfigYaml, error) { data, err := os.ReadFile(filepath.Join(config.PROJECT_ROOT, config.CONFIG_FILE_NAME)) - var x + if err != nil { return nil, err } From 01f4671dc478ac1ff367a3645d079a96b7188c37 Mon Sep 17 00:00:00 2001 From: Rohit Ravindra Date: Fri, 26 Jun 2026 23:41:03 +0530 Subject: [PATCH 4/4] build: harden security of build --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d43b7be..9e35f83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,13 +7,16 @@ on: jobs: build: + permissions: + contents: read runs-on: ubuntu-latest steps: - - name: Checkout repository uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup Go uses: actions/setup-go@v5