Commit ae46393 1 parent 5f54253 commit ae46393 Copy full SHA for ae46393
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 23
23
outputs :
24
24
matrix : ${{ steps.set-matrix.outputs.matrix }}
25
25
steps :
26
+ - name : Harden Runner
27
+ uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
28
+ with :
29
+ egress-policy : audit
26
30
- uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
27
31
with :
28
32
fetch-depth : 2
@@ -32,13 +36,11 @@ jobs:
32
36
# Get the list of files changed in the latest commit(s)
33
37
changed_files=$(git diff --name-only HEAD~1 ${{ github.sha }} | sed 's|^|./|' | jq -R . | jq -s .)
34
38
echo "Changed files: $changed_files"
35
-
39
+
36
40
# If there are changed files, filter the JSON using jq
37
41
matrix=$(jq -c --argjson changed "$changed_files" \
38
42
'.readmes |= map(select(.fname as $fname | any($changed[]; . == $fname)))' \
39
43
.github/dockerhub-readmes.json)
40
- echo "Filtered matrix:"
41
- echo $matrix
42
44
echo "matrix=$matrix" >> $GITHUB_OUTPUT
43
45
publish-dockerhub-description :
44
46
runs-on : ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
You can’t perform that action at this time.
0 commit comments