Skip to content

Commit

Permalink
ci(.github): fix sca action path and ref for image scan
Browse files Browse the repository at this point in the history
  • Loading branch information
saisatishkarra committed Feb 7, 2024
1 parent 4119b41 commit 858e16f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion security-actions/scan-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,20 @@ runs:
using: composite
steps:

# Due to https://github.com/orgs/community/discussions/41927
- name: Symlink current Actions repo
working-directory: ${{ github.action_path }}
shell: bash
run: ln -fs $(realpath ../) /home/runner/work/_actions/current

- run: |
ls -al /home/runner/work/_actions/current
shell: bash
# Reuse SCA action for docker-image
- name: Perform Docker SCA
id: sca
uses: ./security-actions/sca
uses: ./../../_actions/current/security-actions/sca
with:
asset_prefix: ${{ inputs.asset_prefix }}
image: ${{ inputs.image }}
Expand Down

0 comments on commit 858e16f

Please sign in to comment.