Skip to content

Commit ae46393

Browse files
authored
fixes
Signed-off-by: Jitendra Patil <jitendra.patil@intel.com>
1 parent 5f54253 commit ae46393

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/dockerhub-description.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
outputs:
2424
matrix: ${{ steps.set-matrix.outputs.matrix }}
2525
steps:
26+
- name: Harden Runner
27+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
28+
with:
29+
egress-policy: audit
2630
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2731
with:
2832
fetch-depth: 2
@@ -32,13 +36,11 @@ jobs:
3236
# Get the list of files changed in the latest commit(s)
3337
changed_files=$(git diff --name-only HEAD~1 ${{ github.sha }} | sed 's|^|./|' | jq -R . | jq -s .)
3438
echo "Changed files: $changed_files"
35-
39+
3640
# If there are changed files, filter the JSON using jq
3741
matrix=$(jq -c --argjson changed "$changed_files" \
3842
'.readmes |= map(select(.fname as $fname | any($changed[]; . == $fname)))' \
3943
.github/dockerhub-readmes.json)
40-
echo "Filtered matrix:"
41-
echo $matrix
4244
echo "matrix=$matrix" >> $GITHUB_OUTPUT
4345
publish-dockerhub-description:
4446
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}

0 commit comments

Comments
 (0)