diff --git a/.github/workflows/build_packages.yml b/.github/workflows/build_packages.yml index d43ff617..72469084 100644 --- a/.github/workflows/build_packages.yml +++ b/.github/workflows/build_packages.yml @@ -2,7 +2,7 @@ # specific to each workflow. This ensures that each package has an # OTC_BUILD_NUMBER that is greater than previous runs which allows package # upgrades from one build to the next. -name: 'Build packages' +name: "Build packages" # Sets the name of the CI run based on whether the run was triggered with or # without a workflow_id set. @@ -16,7 +16,7 @@ run-name: > on: push: branches: - - 'main' + - "main" pull_request: workflow_dispatch: inputs: @@ -55,7 +55,7 @@ jobs: - name: Set output workflow id: workflow run: | - echo "id=${{ inputs.workflow_id || steps.latest-workflow.outputs.id }}" >> $GITHUB_OUTPUT + echo "id=${{ inputs.workflow_id || steps.latest-workflow.outputs.id }}" >> $GITHUB_OUTPUT - name: Output Remote Workflow URL run: echo ::notice title=Remote Workflow URL::https://github.com/SumoLogic/sumologic-otel-collector/actions/runs/${{ steps.workflow.outputs.id }} @@ -250,7 +250,7 @@ jobs: - name: Run install script tests (*nix) if: steps.changed-files.outputs.any_changed == 'true' && runner.os != 'Windows' working-directory: install-script/test - run: make test + run: umask 0077 && make test - name: Run install script tests (Windows) shell: powershell diff --git a/install-script/test/command_unix.go b/install-script/test/command_unix.go index 3ac98f76..600c29f5 100644 --- a/install-script/test/command_unix.go +++ b/install-script/test/command_unix.go @@ -138,7 +138,9 @@ func exitCode(cmd *exec.Cmd) (int, error) { } func runScript(ch check) (int, []string, []string, error) { - cmd := exec.Command("bash", ch.installOptions.string()...) + opts := []string{"umask", "007", "&&"} + opts = append(opts, ch.installOptions.string()...) + cmd := exec.Command("bash", opts...) cmd.Env = ch.installOptions.buildEnvs() output := []string{}