Skip to content

Commit 873a31d

Browse files
authored
Merge pull request #843 from cmu-delphi/hide-key
Hide API key
2 parents be8f8fa + 6481b63 commit 873a31d

7 files changed

+8
-6
lines changed

.github/workflows/blog.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
${{ runner.os }}-blogdown2-${{ hashFiles('environment.yml') }}-
4747
${{ runner.os }}-blogdown2-
4848
- name: Build site
49+
env:
50+
API_KEY: ${{ secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY }}
4951
run: |
5052
npm run build:blog
5153
- uses: actions/upload-artifact@v3

content/blog/2020-08-26-fb-survey.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ output:
4848
---
4949

5050
```{r, echo=FALSE}
51-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
51+
options(covidcast.auth = Sys.getenv("API_KEY"))
5252
```
5353

5454
Since April 2020, in collaboration with Facebook,

content/blog/2020-10-06-survey-wave-4.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ output:
3131
toc: true
3232
---
3333
```{r, echo=FALSE}
34-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
34+
options(covidcast.auth = Sys.getenv("API_KEY"))
3535
```
3636
Beginning in early April 2020, the `r blogdown::shortcode_html("reflink", "/", "Delphi group")` has
3737
conducted a major survey to track COVID-19 across the United States. With the

content/blog/2020-10-14-dv-signal.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ library(covidcast)
7575
library(dplyr)
7676
library(ggplot2)
7777
library(gridExtra)
78-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
78+
options(covidcast.auth = Sys.getenv("API_KEY"))
7979
8080
# Fetch DV % CLI signal and USAFacts confirmed case incidence proportion at
8181
# the state level

content/blog/2020-12-10-masks-public.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ output:
2222
---
2323

2424
```{r, echo=FALSE}
25-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
25+
options(covidcast.auth = Sys.getenv("API_KEY"))
2626
```
2727

2828
As COVID cases and deaths continue to rise in the United States, we are

content/blog/2021-01-15-causal-effect-mobility.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ output:
2828
---
2929

3030
```{r, echo=FALSE}
31-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
31+
options(covidcast.auth = Sys.getenv("API_KEY"))
3232
```
3333

3434
```{r setup, include=FALSE}

content/blog/2021-01-22-holiday-surveys.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ output:
3030
toc: true
3131
---
3232
```{r, echo=FALSE}
33-
options(covidcast.auth = "9328d11cfe46d") # Minh's key
33+
options(covidcast.auth = Sys.getenv("API_KEY"))
3434
```
3535
With pandemic fatigue setting in across the United States after a long year
3636
filled with uncertainty, many felt the temptation to celebrate a “normal”

0 commit comments

Comments
 (0)