Skip to content

Commit fdcedb9

Browse files
committed
Apply zizmor auto fixes to action config
1 parent 43f049a commit fdcedb9

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
17+
with:
18+
persist-credentials: false
1719
- uses: dtolnay/rust-toolchain@stable
1820
with:
1921
toolchain: nightly
@@ -28,6 +30,8 @@ jobs:
2830
runs-on: ubuntu-latest
2931
steps:
3032
- uses: actions/checkout@v6
33+
with:
34+
persist-credentials: false
3135
- uses: dtolnay/rust-toolchain@stable
3236
with:
3337
toolchain: stable
@@ -44,6 +48,8 @@ jobs:
4448
runs-on: ubuntu-latest
4549
steps:
4650
- uses: actions/checkout@v6
51+
with:
52+
persist-credentials: false
4753
- uses: dtolnay/rust-toolchain@stable
4854
with:
4955
toolchain: stable
@@ -60,6 +66,8 @@ jobs:
6066
runs-on: ubuntu-latest
6167
steps:
6268
- uses: actions/checkout@v6
69+
with:
70+
persist-credentials: false
6371
- uses: dtolnay/rust-toolchain@stable
6472
with:
6573
toolchain: stable

.github/workflows/publish.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v6
20+
with:
21+
persist-credentials: false
2022

2123
- name: Set up Docker Buildx
2224
uses: docker/setup-buildx-action@v3
@@ -31,7 +33,9 @@ jobs:
3133
3234
- name: Set application version
3335
if: ${{ github.ref_type == 'tag' }}
34-
run: sed -i 's/^version = ".*"$/version = "${{ steps.meta.outputs.version }}"/' Cargo.toml
36+
run: sed -i 's/^version = ".*"$/version = "${STEPS_META_OUTPUTS_VERSION}"/' Cargo.toml
37+
env:
38+
STEPS_META_OUTPUTS_VERSION: ${{ steps.meta.outputs.version }}
3539

3640
- name: Login to GHCR
3741
uses: docker/login-action@v3
@@ -76,5 +80,7 @@ jobs:
7680
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
7781
run: |
7882
helm dependencies update helm/numtracker
79-
helm package helm/numtracker --version ${{ steps.meta.outputs.version }} --app-version ${{ steps.meta.outputs.version }} -d /tmp/
80-
helm push /tmp/numtracker-${{ steps.meta.outputs.version }}.tgz oci://ghcr.io/diamondlightsource/charts
83+
helm package helm/numtracker --version ${STEPS_META_OUTPUTS_VERSION} --app-version ${STEPS_META_OUTPUTS_VERSION} -d /tmp/
84+
helm push /tmp/numtracker-${STEPS_META_OUTPUTS_VERSION}.tgz oci://ghcr.io/diamondlightsource/charts
85+
env:
86+
STEPS_META_OUTPUTS_VERSION: ${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)