Skip to content

Commit 60fd30d

Browse files
committed
pass GITHUB_PAT from workflow to docker
1 parent 92e8513 commit 60fd30d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/s3_upload_ec2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
password: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
4646

4747
- name: Deploy score files to S3 bucket
48+
env:
49+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4850
run: |
4951
make deploy
5052

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ PWD=$(shell pwd)
44
.DEFAULT_GOAL:=build
55
S3_URL=https://forecast-eval.s3.us-east-2.amazonaws.com
66
S3_BUCKET=s3://forecast-eval
7+
# If not already set in calling environment, set PAT to an empty value.
8+
GITHUB_PAT?=
79

810
# Change `imageTag` during `make` call via `make <command> imageTag=<tag name>`
911
#
@@ -46,6 +48,7 @@ score_forecast: r_build dist pull_data
4648
-v ${PWD}/Report:/var/forecast-eval \
4749
-v ${PWD}/dist:/var/dist \
4850
-w /var/forecast-eval \
51+
-e GITHUB_PAT \
4952
forecast-eval-build \
5053
Rscript create_reports.R --dir /var/dist
5154

0 commit comments

Comments
 (0)