Skip to content

Commit

Permalink
wip18
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Golaszewski committed Nov 19, 2024
1 parent b1b0710 commit 7f4adaf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,21 @@ jobs:
}
})
let container_tag = packages[0].metadata.container.tags[0]
context.container_tag = packages[0].metadata.container.tags[0]
context.container_sha = packages[0].name.split(":")[1]
return packages[0]
- uses: actions/github-script@v7
id: read-tag
with:
script: |
console.log(context)
console.log(context.container_tag)
console.log(context.context.container_sha)
console.log(env.context.container_sha)
# result-encoding: string
- name: Get commit sha
run: |
echo "${{ fromJson(steps.read-tag.outputs.result) }}"
# - name: Get commit sha
# run: |
# echo "${{ fromJson(steps.read-tag.outputs.result) }}"

# - name: Checking out repo
# uses: actions/checkout@v4
Expand Down

0 comments on commit 7f4adaf

Please sign in to comment.