From b9e6f50d5f824414d53ecad014c2b233325029b0 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Sat, 21 Dec 2024 18:16:25 +0100 Subject: [PATCH] Change config file permissions in GH Action --- .github/workflows/runonce.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index ffa6c19..8e44418 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -33,6 +33,11 @@ jobs: - name: Build MetricCollector run: make + - name: Set config file permissions + run: | + chown $USER .github/ci*.json + chmod 0600 .github/ci*.json + - name: Run MetricCollector once run: ./cc-metric-collector --once --config .github/ci-config.json @@ -59,6 +64,11 @@ jobs: - name: Build MetricCollector run: make + - name: Set config file permissions + run: | + chown $USER .github/ci*.json + chmod 0600 .github/ci*.json + - name: Run MetricCollector once run: ./cc-metric-collector --once --config .github/ci-config.json @@ -85,6 +95,11 @@ jobs: - name: Build MetricCollector run: make + - name: Set config file permissions + run: | + chown $USER .github/ci*.json + chmod 0600 .github/ci*.json + - name: Run MetricCollector once run: ./cc-metric-collector --once --config .github/ci-config.json @@ -331,4 +346,4 @@ jobs: id: dpkg-build run: | export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH - make DEB \ No newline at end of file + make DEB