Skip to content

Commit

Permalink
Fixed secrets-update job, forgot to save in VS-code (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreMerkely authored Oct 8, 2024
1 parent 86f571c commit a8ce1ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/secrets-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check of updates to secrets info files
on:
push:
branches:
- master
- main
paths:
- 'secrets/*.txt'

Expand Down
2 changes: 1 addition & 1 deletion bin/report_update_of_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ report_update_of_secrets_to_kosli()
local -r trail_name=$(get_soc_trail_name)
local files_changed secret_name expire_date repository attestation_name

files_changed=$(git diff --name-only HEAD~200 HEAD ${SECRETS_PATH})
files_changed=$(git diff --name-only HEAD^ HEAD ${SECRETS_PATH})
for file in ${files_changed}; do
secret_name=$(grep "^secret-name:" $file | sed "s/secret-name: *//")
expire_date=$(grep "^secret-expire:" $file | sed "s/secret-expire: *//")
Expand Down
1 change: 0 additions & 1 deletion secrets/gh-repo-fury-token.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ Copy the token

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>

0 comments on commit a8ce1ec

Please sign in to comment.