Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
brucehoff committed Dec 9, 2024
1 parent b2f2945 commit aaca3f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trivy_periodic_image_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ name: Trivy Periodic Image Scan

on:
schedule:
# - cron: "0 0 * * *" daily
- cron: "0 * * * *" # hourly
- cron: "0 0 * * *" #daily
# - cron: "0 * * * *" # hourly

jobs:
get-image-reference:
Expand All @@ -23,7 +23,7 @@ jobs:
basic_creds=$(echo "dummy-user-name:${{ github.token }}" | base64)
token_response=$(curl -H "Authorization: Basic ${basic_creds}" "https://ghcr.io/token?service=ghcr.io&scope=${repo_name}:pull")
echo token_response ${token_response}
bearer_token=$(${token_response} | jq -r '.token' )
bearer_token=$(echo ${token_response} | jq -r '.token' )
echo bearer_token ${bearer_token}
echo $(curl -H "Authorization: Bearer ${bearer_token}" "https://ghcr.io/v2/${repo_name}/tags/list?page_size=1000")
last_tag=$(curl -H "Authorization: Bearer ${bearer_token}" "https://ghcr.io/v2/${repo_name}/tags/list?page_size=1000" | jq -r '.tags[-1]')
Expand Down

0 comments on commit aaca3f5

Please sign in to comment.