Skip to content

Commit 786f8d6

Browse files
committed
chore(ci): workflows with zizmor remediations
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent 5cf294b commit 786f8d6

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/_docker-pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
steps:
6767
- name: Checkout
6868
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
69+
with:
70+
persist-credentials: false
6971

7072
- name: 🔨 Set up Docker Buildx
7173
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

.github/workflows/dependabot-review.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
inspect:
16-
if: github.actor == 'dependabot[bot]'
16+
if: github.event.pull_request.user.login == 'dependabot[bot]'
1717
runs-on: ubuntu-latest
1818
outputs:
1919
root_docker_changed: ${{ steps.diff.outputs.root_docker_changed }}
@@ -66,7 +66,7 @@ jobs:
6666
6767
docker-smoke-main:
6868
needs: inspect
69-
if: github.actor == 'dependabot[bot]' && needs.inspect.outputs.root_docker_changed == 'true'
69+
if: github.event.pull_request.user.login == 'dependabot[bot]' && needs.inspect.outputs.root_docker_changed == 'true'
7070
uses: ./.github/workflows/_docker-pipeline.yml
7171
permissions:
7272
contents: read
@@ -79,7 +79,7 @@ jobs:
7979

8080
docker-smoke-app-tests:
8181
needs: inspect
82-
if: github.actor == 'dependabot[bot]' && needs.inspect.outputs.app_tests_docker_changed == 'true'
82+
if: github.event.pull_request.user.login == 'dependabot[bot]' && needs.inspect.outputs.app_tests_docker_changed == 'true'
8383
uses: ./.github/workflows/_docker-pipeline.yml
8484
permissions:
8585
contents: read
@@ -92,7 +92,7 @@ jobs:
9292

9393
workflow-notice:
9494
needs: inspect
95-
if: github.actor == 'dependabot[bot]' && needs.inspect.outputs.workflow_or_action_changed == 'true'
95+
if: github.event.pull_request.user.login == 'dependabot[bot]' && needs.inspect.outputs.workflow_or_action_changed == 'true'
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: Flag workflow-sensitive updates

.github/workflows/publish-docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4343
with:
4444
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
45+
persist-credentials: false
4546

4647
- name: 🏷️ Resolve version
4748
id: version
@@ -97,6 +98,7 @@ jobs:
9798
with:
9899
ref: main
99100
fetch-depth: 0
101+
persist-credentials: false
100102

101103
- name: 🤖 Generate socket-release-bot token
102104
id: bot

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ runs:
7676
INPUT_SWIFT_DISABLED_RULES: ${{ inputs.swift_disabled_rules }}
7777
INPUT_SWIFT_ENABLED_RULES: ${{ inputs.swift_enabled_rules }}
7878
INPUT_SWIFT_SAST_ENABLED: ${{ inputs.swift_sast_enabled }}
79+
# Trivy-backed scanning is temporarily disabled in the pre-built GitHub Action image.
7980
INPUT_TRIVY_DISABLED_RULES: ${{ inputs.trivy_disabled_rules }}
8081
INPUT_TRIVY_IMAGE_SCANNING_DISABLED: ${{ inputs.trivy_image_scanning_disabled }}
8182
INPUT_TRIVY_NOTIFICATION_METHOD: ${{ inputs.trivy_notification_method }}

0 commit comments

Comments
 (0)