Change config file permissions in GH Action

This commit is contained in:
Thomas Roehl 2024-12-21 18:16:25 +01:00
parent 03d5486413
commit b9e6f50d5f

View File

@ -33,6 +33,11 @@ jobs:
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
- name: Set config file permissions
run: |
chown $USER .github/ci*.json
chmod 0600 .github/ci*.json
- name: Run MetricCollector once - name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json run: ./cc-metric-collector --once --config .github/ci-config.json
@ -59,6 +64,11 @@ jobs:
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
- name: Set config file permissions
run: |
chown $USER .github/ci*.json
chmod 0600 .github/ci*.json
- name: Run MetricCollector once - name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json run: ./cc-metric-collector --once --config .github/ci-config.json
@ -85,6 +95,11 @@ jobs:
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
- name: Set config file permissions
run: |
chown $USER .github/ci*.json
chmod 0600 .github/ci*.json
- name: Run MetricCollector once - name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json run: ./cc-metric-collector --once --config .github/ci-config.json