Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from ewels/main
Browse files Browse the repository at this point in the history
Patch release: Don't reveal auth tokens
  • Loading branch information
ewels authored Sep 6, 2022
2 parents d245de3 + 67694ee commit 0ea2734
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# nf-core/tower-action: Changelog

## [[v3.2.1](https://github.com/nf-core/tower-action/releases/tag/v3.2.1)] - 2022-09-06

* Patch release to strip Tower authentication tokens from the log file 😬

## [[v3.2.0](https://github.com/nf-core/tower-action/releases/tag/v3.2.0)] - 2022-09-06

* Bumped tower-cli version `0.6.2` -> `0.6.4`
Expand Down
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Use `tee` to print just stdout to the console but save stdout + stderr to a file
LOG_FN="tower_action_"$(date +'%Y_%m_%d-%H_%M')".log"

# Manual curl of service-info
curl https://api.tower.nf/service-info >> $LOG_FN
echo -e "\n\n------\n\n" >> $LOG_FN

# Health check - print basic settings
tw -v info \
2>> $LOG_FN | tee -a $LOG_FN
Expand All @@ -28,3 +32,6 @@ tw -v \
${PRE_RUN_SCRIPT:+"--pre-run=pre_run.sh"} \
${NEXTFLOW_CONFIG:+"--config=nextflow.config"} \
2>> $LOG_FN | tee -a $LOG_FN

# Strip secrets from the log file
sed -i "s/$TOWER_ACCESS_TOKEN/xxxxxx/" $LOG_FN

0 comments on commit 0ea2734

Please sign in to comment.