rstudio / blastula

Easily send great-looking HTML email messages from R
https://pkgs.rstudio.com/blastula
Other
547 stars 85 forks source link

Credentials fail on Github Actions but work elsewhere #233

Open wfmackey opened 4 years ago

wfmackey commented 4 years ago

Hi

Love the package -- thank you! I am successfully sending emails in a live R session using creds_envvar (censoring the password in my_password):

> library(blastula)
> 
> Sys.setenv("SMTP_PASSWORD" = my_password)
> 
> smtp_send(
+   email = compose_email("Hello; body of email"), 
+   from = "dailyhousepriceupdates@gmail.com",
+   to = "wfmackey@gmail.com",
+   subject = "Subject of email",
+   credentials = creds_envvar(
+     user = "dailyhousepriceupdates@gmail.com", 
+     provider = "gmail")
+ )
The email message was sent successfully.
> 

I want to use Github Actions to automatically send this email. I have stored the password in quotation marks in the project's Secrets as SMTP_PASSWORD, and am setting the environment variable with SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}:

name: send-email-update

on:
  schedule:
    - cron: "31 01-02 * * *"
  push:
    branches:
      - master

jobs:
  send-email-update:
    runs-on: macOS-latest
    steps:
      - uses: actions/checkout@v2
      - uses: r-lib/actions/setup-r@master
      - name: Install CRAN packages
        run: Rscript -e 'install.packages(c("blastula", "keyring", "here"), type = "binary")'
      - name: Set system password and send email
        env: 
          SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
        run: |
          Rscript -e 'source(here::here("R", "send-email.R"), echo = TRUE)'

where send-email.R is:

library(blastula)

smtp_send(
  email = compose_email("Hello; body of email"), 
  from = "dailyhousepriceupdates@gmail.com",
  to = "wfmackey@gmail.com",
  subject = "Subject of email",
  credentials = creds_envvar(
    user = "dailyhousepriceupdates@gmail.com", 
    provider = "gmail")
)

This fails, giving the Login denied error:

[error]Error in curl_fetch_memory(smtp_server, handle = h) : Login denied

Full Github Actions log is below. Any help would be greatly appreciated.

Thanks!

Full Github Actions log
```r 2020-10-04T10:15:05.7316222Z ##[section]Starting: Request a runner to run this job 2020-10-04T10:15:06.4584079Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'macOS-latest' 2020-10-04T10:15:06.4584182Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'macOS-latest' 2020-10-04T10:15:06.4930043Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'macOS-latest' 2020-10-04T10:15:06.6409063Z ##[section]Finishing: Request a runner to run this job 2020-10-04T10:15:19.5521490Z Current runner version: '2.273.4' 2020-10-04T10:15:19.5643800Z ##[group]Operating System 2020-10-04T10:15:19.5645000Z Mac OS X 2020-10-04T10:15:19.5645410Z 10.15.6 2020-10-04T10:15:19.5645770Z 19G2021 2020-10-04T10:15:19.5646150Z ##[endgroup] 2020-10-04T10:15:19.5646610Z ##[group]Virtual Environment 2020-10-04T10:15:19.5647160Z Environment: macos-10.15 2020-10-04T10:15:19.5647610Z Version: 20200918.1 2020-10-04T10:15:19.5648530Z Included Software: https://github.com/actions/virtual-environments/blob/macos-10.15/20200918.1/images/macos/macos-10.15-Readme.md 2020-10-04T10:15:19.5649450Z ##[endgroup] 2020-10-04T10:15:19.5651090Z Prepare workflow directory 2020-10-04T10:15:19.5999730Z Prepare all required actions 2020-10-04T10:15:19.6020430Z Download action repository 'actions/checkout@v2' 2020-10-04T10:15:25.4571670Z Download action repository 'r-lib/actions@master' 2020-10-04T10:15:31.5167270Z ##[group]Run actions/checkout@v2 2020-10-04T10:15:31.5167820Z with: 2020-10-04T10:15:31.5168330Z repository: wfmackey/house-prices 2020-10-04T10:15:31.5169100Z token: *** 2020-10-04T10:15:31.5169360Z ssh-strict: true 2020-10-04T10:15:31.5169690Z persist-credentials: true 2020-10-04T10:15:31.5170000Z clean: true 2020-10-04T10:15:31.5170240Z fetch-depth: 1 2020-10-04T10:15:31.5170480Z lfs: false 2020-10-04T10:15:31.5170730Z submodules: false 2020-10-04T10:15:31.5170990Z ##[endgroup] 2020-10-04T10:15:32.6715400Z Syncing repository: wfmackey/house-prices 2020-10-04T10:15:32.6716260Z ##[group]Getting Git version info 2020-10-04T10:15:32.6717390Z Working directory is '/Users/runner/work/house-prices/house-prices' 2020-10-04T10:15:32.6718010Z [command]/usr/local/bin/git version 2020-10-04T10:15:32.6875240Z git version 2.28.0 2020-10-04T10:15:32.6905560Z ##[endgroup] 2020-10-04T10:15:32.6915140Z Deleting the contents of '/Users/runner/work/house-prices/house-prices' 2020-10-04T10:15:32.6921610Z ##[group]Initializing the repository 2020-10-04T10:15:32.6926810Z [command]/usr/local/bin/git init /Users/runner/work/house-prices/house-prices 2020-10-04T10:15:32.7172870Z Initialized empty Git repository in /Users/runner/work/house-prices/house-prices/.git/ 2020-10-04T10:15:32.7186690Z [command]/usr/local/bin/git remote add origin https://github.com/wfmackey/house-prices 2020-10-04T10:15:32.7265160Z ##[endgroup] 2020-10-04T10:15:32.7265740Z ##[group]Disabling automatic garbage collection 2020-10-04T10:15:32.7272080Z [command]/usr/local/bin/git config --local gc.auto 0 2020-10-04T10:15:32.7342220Z ##[endgroup] 2020-10-04T10:15:32.7350170Z ##[group]Setting up auth 2020-10-04T10:15:32.7360520Z [command]/usr/local/bin/git config --local --name-only --get-regexp core\.sshCommand 2020-10-04T10:15:32.7431510Z [command]/usr/local/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2020-10-04T10:15:32.8681740Z [command]/usr/local/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2020-10-04T10:15:32.8764030Z [command]/usr/local/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2020-10-04T10:15:32.9653430Z [command]/usr/local/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2020-10-04T10:15:32.9803940Z ##[endgroup] 2020-10-04T10:15:32.9804540Z ##[group]Fetching the repository 2020-10-04T10:15:32.9816670Z [command]/usr/local/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +3cc074c942f76c48aed10f9890b1b4677592bc38:refs/remotes/origin/master 2020-10-04T10:15:33.6928820Z remote: Enumerating objects: 29, done. 2020-10-04T10:15:33.6931150Z remote: Counting objects: 3% (1/29) 2020-10-04T10:15:33.6931970Z remote: Counting objects: 6% (2/29) 2020-10-04T10:15:33.6932500Z remote: Counting objects: 10% (3/29) 2020-10-04T10:15:33.6933780Z remote: Counting objects: 13% (4/29) 2020-10-04T10:15:33.6935970Z remote: Counting objects: 17% (5/29) 2020-10-04T10:15:33.6937470Z remote: Counting objects: 20% (6/29) 2020-10-04T10:15:33.6939240Z remote: Counting objects: 24% (7/29) 2020-10-04T10:15:33.6940670Z remote: Counting objects: 27% (8/29) 2020-10-04T10:15:33.6941280Z remote: Counting objects: 31% (9/29) 2020-10-04T10:15:33.6943310Z remote: Counting objects: 34% (10/29) 2020-10-04T10:15:33.6943820Z remote: Counting objects: 37% (11/29) 2020-10-04T10:15:33.6944360Z remote: Counting objects: 41% (12/29) 2020-10-04T10:15:33.6944870Z remote: Counting objects: 44% (13/29) 2020-10-04T10:15:33.6945310Z remote: Counting objects: 48% (14/29) 2020-10-04T10:15:33.6946690Z remote: Counting objects: 51% (15/29) 2020-10-04T10:15:33.6947280Z remote: Counting objects: 55% (16/29) 2020-10-04T10:15:33.6947800Z remote: Counting objects: 58% (17/29) 2020-10-04T10:15:33.6948260Z remote: Counting objects: 62% (18/29) 2020-10-04T10:15:33.6948720Z remote: Counting objects: 65% (19/29) 2020-10-04T10:15:33.6950010Z remote: Counting objects: 68% (20/29) 2020-10-04T10:15:33.6950500Z remote: Counting objects: 72% (21/29) 2020-10-04T10:15:33.6950950Z remote: Counting objects: 75% (22/29) 2020-10-04T10:15:33.6951430Z remote: Counting objects: 79% (23/29) 2020-10-04T10:15:33.6952770Z remote: Counting objects: 82% (24/29) 2020-10-04T10:15:33.6954540Z remote: Counting objects: 86% (25/29) 2020-10-04T10:15:33.6956680Z remote: Counting objects: 89% (26/29) 2020-10-04T10:15:33.6957980Z remote: Counting objects: 93% (27/29) 2020-10-04T10:15:33.6959190Z remote: Counting objects: 96% (28/29) 2020-10-04T10:15:33.6960480Z remote: Counting objects: 100% (29/29) 2020-10-04T10:15:33.6960930Z remote: Counting objects: 100% (29/29), done. 2020-10-04T10:15:33.6961360Z remote: Compressing objects: 4% (1/21) 2020-10-04T10:15:33.6961780Z remote: Compressing objects: 9% (2/21) 2020-10-04T10:15:33.6962880Z remote: Compressing objects: 14% (3/21) 2020-10-04T10:15:33.6964850Z remote: Compressing objects: 19% (4/21) 2020-10-04T10:15:33.6965340Z remote: Compressing objects: 23% (5/21) 2020-10-04T10:15:33.6965760Z remote: Compressing objects: 28% (6/21) 2020-10-04T10:15:33.6966170Z remote: Compressing objects: 33% (7/21) 2020-10-04T10:15:33.6966590Z remote: Compressing objects: 38% (8/21) 2020-10-04T10:15:33.6967000Z remote: Compressing objects: 42% (9/21) 2020-10-04T10:15:33.6967410Z remote: Compressing objects: 47% (10/21) 2020-10-04T10:15:33.6967820Z remote: Compressing objects: 52% (11/21) 2020-10-04T10:15:33.6968240Z remote: Compressing objects: 57% (12/21) 2020-10-04T10:15:33.6968650Z remote: Compressing objects: 61% (13/21) 2020-10-04T10:15:33.6969060Z remote: Compressing objects: 66% (14/21) 2020-10-04T10:15:33.6969470Z remote: Compressing objects: 71% (15/21) 2020-10-04T10:15:33.6969880Z remote: Compressing objects: 76% (16/21) 2020-10-04T10:15:33.6970280Z remote: Compressing objects: 80% (17/21) 2020-10-04T10:15:33.6970690Z remote: Compressing objects: 85% (18/21) 2020-10-04T10:15:33.6971090Z remote: Compressing objects: 90% (19/21) 2020-10-04T10:15:33.6971500Z remote: Compressing objects: 95% (20/21) 2020-10-04T10:15:33.6971900Z remote: Compressing objects: 100% (21/21) 2020-10-04T10:15:33.6972330Z remote: Compressing objects: 100% (21/21), done. 2020-10-04T10:15:33.7978000Z remote: Total 29 (delta 1), reused 23 (delta 0), pack-reused 0 2020-10-04T10:15:33.8239110Z From https://github.com/wfmackey/house-prices 2020-10-04T10:15:33.8240500Z * [new ref] 3cc074c942f76c48aed10f9890b1b4677592bc38 -> origin/master 2020-10-04T10:15:33.8309590Z ##[endgroup] 2020-10-04T10:15:33.8310680Z ##[group]Determining the checkout info 2020-10-04T10:15:33.8312890Z ##[endgroup] 2020-10-04T10:15:33.8313340Z ##[group]Checking out the ref 2020-10-04T10:15:33.8319460Z [command]/usr/local/bin/git checkout --progress --force -B master refs/remotes/origin/master 2020-10-04T10:15:33.8541730Z Reset branch 'master' 2020-10-04T10:15:33.8544660Z Branch 'master' set up to track remote branch 'master' from 'origin'. 2020-10-04T10:15:33.8549910Z ##[endgroup] 2020-10-04T10:15:33.8637490Z [command]/usr/local/bin/git log -1 --format='%H' 2020-10-04T10:15:33.8701620Z '3cc074c942f76c48aed10f9890b1b4677592bc38' 2020-10-04T10:15:33.8861340Z ##[group]Run r-lib/actions/setup-r@master 2020-10-04T10:15:33.8861730Z with: 2020-10-04T10:15:33.8861990Z r-version: release 2020-10-04T10:15:33.8862270Z Ncpus: 1 2020-10-04T10:15:33.8862560Z crayon.enabled: TRUE 2020-10-04T10:15:33.8862940Z remove-openmp-macos: true 2020-10-04T10:15:33.8863340Z http-user-agent: default 2020-10-04T10:15:33.8863660Z install-r: true 2020-10-04T10:15:33.8863950Z ##[endgroup] 2020-10-04T10:15:34.1059700Z [command]brew cask install gfortran 2020-10-04T10:15:34.1137520Z [command]brew install qpdf pkgconfig checkbashisms 2020-10-04T10:15:36.8830440Z [command]sudo installer -pkg /Users/runner/work/_temp/R-4.0.2.pkg -target / 2020-10-04T10:16:13.6050400Z ==> Caveats 2020-10-04T10:16:13.6067150Z Cask gfortran installs files under /usr/local. The presence of such 2020-10-04T10:16:13.6080740Z files can cause warnings when running `brew doctor`, which is considered 2020-10-04T10:16:13.6081780Z to be a bug in Homebrew Cask. 2020-10-04T10:16:13.6082500Z 2020-10-04T10:16:13.8309320Z ==> Downloading https://github.com/fxcoudert/gfortran-for-macOS/releases/download/8.2/gfortran-8.2-Mojave.dmg 2020-10-04T10:16:13.8383590Z ==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/154810540/30a8de80-dc83-11e8-8dc4-a6066c9fcc7a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201004T101600Z&X-Amz-Expires=300&X-Amz-Signature=374c7944aa3de2f74847cf8d11ac1c2ee87e9a7ecad89af032fd11370326f0a4&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=154810540&response-content-disposition=attachment%3B%20filename%3Dgfortran-8.2-Mojave.dmg&response-content-type=application%2Foctet-stream 2020-10-04T10:16:14.1043200Z Warning: pkg-config 0.29.2_3 is already installed and up-to-date 2020-10-04T10:16:14.1044430Z To reinstall 0.29.2_3, run `brew reinstall pkg-config` 2020-10-04T10:16:14.6108670Z ==> Downloading https://homebrew.bintray.com/bottles/qpdf-10.0.1.catalina.bottle.tar.gz 2020-10-04T10:16:14.6165670Z ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5ccc930f3c428ba0838eb50778c5e0fbe7c984fb43b468ba959714d70a7813eb?response-content-disposition=attachment%3Bfilename%3D%22qpdf-10.0.1.catalina.bottle.tar.gz%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvNWNjYzkzMGYzYzQyOGJhMDgzOGViNTA3NzhjNWUwZmJlN2M5ODRmYjQzYjQ2OGJhOTU5NzE0ZDcwYTc4MTNlYj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMnFwZGYtMTAuMC4xLmNhdGFsaW5hLmJvdHRsZS50YXIuZ3olMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2MDE4MDcyOTR9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=hd05EBiHnGxWWc6a4FZIG9BnYrhJFBsxjbgKrSEwzHow76efOJXYadCXd0vpny58gL94~vMqvtZtn--OOhY~ESDbSu7zz2nC8YDiL6nojkxYxHSsmpLuJ63HO3qnlwrxCGHv2NiXCjz2O9hex4XLmgvWSMY70M3Z3OnHTBh2Tr4eefQBlAUAKEiRoIfcO5qKmq-i0HheVe6oaAScLtYZsqpCcUn7avUy9T0OV1aT1piZO28vEKlebDZYLPqxhEX6eAFRsxb-0EyLUJ~vVWQmHWbFj06p0vtx4yv~L7CO7KpoENGsaEb6LVhCO4C34VywYZ0tNYVg5s0y0tfSYKR6bw__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA 2020-10-04T10:16:14.9076530Z ==> Pouring qpdf-10.0.1.catalina.bottle.tar.gz 2020-10-04T10:16:20.6064450Z installer: Package name is R 4.0.2 for macOS 2020-10-04T10:16:20.6065010Z installer: Upgrading at base path / 2020-10-04T10:16:20.6066090Z installer: The upgrade was successful. 2020-10-04T10:16:21.2890780Z 🍺 /usr/local/Cellar/qpdf/10.0.1: 68 files, 4.9MB 2020-10-04T10:16:21.4597140Z ==> Downloading https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_2.20.4.tar.xz 2020-10-04T10:16:27.4696880Z 🍺 /usr/local/Cellar/checkbashisms/2.20.4: 6 files, 70.6KB, built in 4 seconds 2020-10-04T10:16:27.4711090Z Warning: macOS's Gatekeeper has been disabled for this Cask 2020-10-04T10:16:27.4718500Z ==> Verifying SHA-256 checksum for Cask 'gfortran'. 2020-10-04T10:16:27.4720650Z ==> Installing Cask gfortran 2020-10-04T10:16:35.8135780Z ==> Running installer for gfortran; your password may be necessary. 2020-10-04T10:16:35.8137040Z ==> Package installers may write to any location; options such as --appdir are ignored. 2020-10-04T10:16:44.6604930Z installer: Package name is gfortran 2020-10-04T10:16:44.6605430Z installer: Installing at base path / 2020-10-04T10:16:44.6605970Z installer: The install was successful. 2020-10-04T10:16:44.8359710Z 🍺 gfortran was successfully installed! 2020-10-04T10:16:44.8392260Z [command]sed -i .bak -e s/-fopenmp//g /Library/Frameworks/R.framework/Resources/etc/Makeconf 2020-10-04T10:16:44.9286490Z ##[group]Run Rscript -e 'install.packages(c("blastula", "keyring", "here"), type = "binary")' 2020-10-04T10:16:44.9287530Z Rscript -e 'install.packages(c("blastula", "keyring", "here"), type = "binary")' 2020-10-04T10:16:44.9469390Z shell: /bin/bash -e {0} 2020-10-04T10:16:44.9469670Z env: 2020-10-04T10:16:44.9469980Z R_LIBS_USER: /Users/runner/work/_temp/Library 2020-10-04T10:16:44.9470280Z TZ: UTC 2020-10-04T10:16:44.9470880Z _R_CHECK_SYSTEM_CLOCK_: FALSE 2020-10-04T10:16:44.9471180Z NOT_CRAN: true 2020-10-04T10:16:44.9471420Z ##[endgroup] 2020-10-04T10:16:46.2571500Z Installing packages into ‘/Users/runner/work/_temp/Library’ 2020-10-04T10:16:46.2572600Z (as ‘lib’ is unspecified) 2020-10-04T10:16:48.7221520Z also installing the dependencies ‘utf8’, ‘cli’, ‘crayon’, ‘fansi’, ‘pillar’, ‘pkgconfig’, ‘purrr’, ‘highr’, ‘markdown’, ‘sys’, ‘ellipsis’, ‘generics’, ‘glue’, ‘lifecycle’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘rstudioapi’, ‘knitr’, ‘evaluate’, ‘tinytex’, ‘xfun’, ‘stringi’, ‘askpass’, ‘backports’, ‘base64enc’, ‘commonmark’, ‘curl’, ‘digest’, ‘dplyr’, ‘fs’, ‘getPass’, ‘htmltools’, ‘httr’, ‘jsonlite’, ‘magrittr’, ‘mime’, ‘rlang’, ‘rmarkdown’, ‘stringr’, ‘uuid’, ‘assertthat’, ‘openssl’, ‘R6’, ‘sodium’, ‘yaml’, ‘filelock’, ‘rappdirs’, ‘rprojroot’ 2020-10-04T10:16:48.7223380Z 2020-10-04T10:16:48.7300150Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/utf8_1.1.4.tgz' 2020-10-04T10:16:48.9562450Z Content type 'application/x-gzip' length 195526 bytes (190 KB) 2020-10-04T10:16:48.9589360Z ================================================== 2020-10-04T10:16:48.9589810Z downloaded 190 KB 2020-10-04T10:16:48.9590060Z 2020-10-04T10:16:49.0642460Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/cli_2.0.2.tgz' 2020-10-04T10:16:49.2687430Z Content type 'application/x-gzip' length 395495 bytes (386 KB) 2020-10-04T10:16:49.2766930Z ================================================== 2020-10-04T10:16:49.2769020Z downloaded 386 KB 2020-10-04T10:16:49.2775980Z 2020-10-04T10:16:49.2892530Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/crayon_1.3.4.tgz' 2020-10-04T10:16:49.4267830Z Content type 'application/x-gzip' length 748897 bytes (731 KB) 2020-10-04T10:16:49.4421770Z ================================================== 2020-10-04T10:16:49.4422320Z downloaded 731 KB 2020-10-04T10:16:49.4422570Z 2020-10-04T10:16:49.4557280Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/fansi_0.4.1.tgz' 2020-10-04T10:16:49.5867810Z Content type 'application/x-gzip' length 210700 bytes (205 KB) 2020-10-04T10:16:49.5928880Z ================================================== 2020-10-04T10:16:49.5929360Z downloaded 205 KB 2020-10-04T10:16:49.5929610Z 2020-10-04T10:16:49.6032300Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/pillar_1.4.6.tgz' 2020-10-04T10:16:49.7223940Z Content type 'application/x-gzip' length 176431 bytes (172 KB) 2020-10-04T10:16:49.7272170Z ================================================== 2020-10-04T10:16:49.7272700Z downloaded 172 KB 2020-10-04T10:16:49.7272950Z 2020-10-04T10:16:49.7365740Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/pkgconfig_2.0.3.tgz' 2020-10-04T10:16:49.8767710Z Content type 'application/x-gzip' length 17738 bytes (17 KB) 2020-10-04T10:16:49.8776940Z ================================================== 2020-10-04T10:16:49.8778180Z downloaded 17 KB 2020-10-04T10:16:49.8779810Z 2020-10-04T10:16:49.8862150Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/purrr_0.3.4.tgz' 2020-10-04T10:16:50.1017210Z Content type 'application/x-gzip' length 417900 bytes (408 KB) 2020-10-04T10:16:50.1104470Z ================================================== 2020-10-04T10:16:50.1105110Z downloaded 408 KB 2020-10-04T10:16:50.1105670Z 2020-10-04T10:16:50.1207590Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/highr_0.8.tgz' 2020-10-04T10:16:50.2398480Z Content type 'application/x-gzip' length 40856 bytes (39 KB) 2020-10-04T10:16:50.2410990Z ================================================== 2020-10-04T10:16:50.2411460Z downloaded 39 KB 2020-10-04T10:16:50.2411710Z 2020-10-04T10:16:50.2496000Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/markdown_1.1.tgz' 2020-10-04T10:16:50.3792080Z Content type 'application/x-gzip' length 198809 bytes (194 KB) 2020-10-04T10:16:50.3822110Z ================================================== 2020-10-04T10:16:50.3824210Z downloaded 194 KB 2020-10-04T10:16:50.3824470Z 2020-10-04T10:16:50.3924040Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/sys_3.4.tgz' 2020-10-04T10:16:50.5981640Z Content type 'application/x-gzip' length 47291 bytes (46 KB) 2020-10-04T10:16:50.5989600Z ================================================== 2020-10-04T10:16:50.5990000Z downloaded 46 KB 2020-10-04T10:16:50.5990270Z 2020-10-04T10:16:50.6088500Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/ellipsis_0.3.1.tgz' 2020-10-04T10:16:50.8411240Z Content type 'application/x-gzip' length 33497 bytes (32 KB) 2020-10-04T10:16:50.8412490Z ================================================== 2020-10-04T10:16:50.8413510Z downloaded 32 KB 2020-10-04T10:16:50.8414240Z 2020-10-04T10:16:50.8446340Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/generics_0.0.2.tgz' 2020-10-04T10:16:50.9769230Z Content type 'application/x-gzip' length 63606 bytes (62 KB) 2020-10-04T10:16:50.9781030Z ================================================== 2020-10-04T10:16:50.9781440Z downloaded 62 KB 2020-10-04T10:16:50.9781680Z 2020-10-04T10:16:50.9816320Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/glue_1.4.2.tgz' 2020-10-04T10:16:51.1837810Z Content type 'application/x-gzip' length 139018 bytes (135 KB) 2020-10-04T10:16:51.1856820Z ================================================== 2020-10-04T10:16:51.1857290Z downloaded 135 KB 2020-10-04T10:16:51.1857540Z 2020-10-04T10:16:51.1896260Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/lifecycle_0.2.0.tgz' 2020-10-04T10:16:51.3240380Z Content type 'application/x-gzip' length 91596 bytes (89 KB) 2020-10-04T10:16:51.3246760Z ================================================== 2020-10-04T10:16:51.3247450Z downloaded 89 KB 2020-10-04T10:16:51.3247930Z 2020-10-04T10:16:51.3382480Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/tibble_3.0.3.tgz' 2020-10-04T10:16:51.5579760Z Content type 'application/x-gzip' length 394303 bytes (385 KB) 2020-10-04T10:16:51.5632570Z ================================================== 2020-10-04T10:16:51.5632990Z downloaded 385 KB 2020-10-04T10:16:51.5633200Z 2020-10-04T10:16:51.5667030Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/tidyselect_1.1.0.tgz' 2020-10-04T10:16:51.6876530Z Content type 'application/x-gzip' length 197492 bytes (192 KB) 2020-10-04T10:16:51.6944090Z ================================================== 2020-10-04T10:16:51.6944480Z downloaded 192 KB 2020-10-04T10:16:51.6944740Z 2020-10-04T10:16:51.7043200Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/vctrs_0.3.4.tgz' 2020-10-04T10:16:51.8239850Z Content type 'application/x-gzip' length 1307888 bytes (1.2 MB) 2020-10-04T10:16:51.8432390Z ================================================== 2020-10-04T10:16:51.8432840Z downloaded 1.2 MB 2020-10-04T10:16:51.8433050Z 2020-10-04T10:16:51.8565490Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/rstudioapi_0.11.tgz' 2020-10-04T10:16:52.1224310Z Content type 'application/x-gzip' length 257646 bytes (251 KB) 2020-10-04T10:16:52.1296960Z ================================================== 2020-10-04T10:16:52.1297470Z downloaded 251 KB 2020-10-04T10:16:52.1297720Z 2020-10-04T10:16:52.1385190Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/knitr_1.30.tgz' 2020-10-04T10:16:52.3275650Z Content type 'application/x-gzip' length 1393488 bytes (1.3 MB) 2020-10-04T10:16:52.3478770Z ================================================== 2020-10-04T10:16:52.3479380Z downloaded 1.3 MB 2020-10-04T10:16:52.3479630Z 2020-10-04T10:16:52.3606620Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/evaluate_0.14.tgz' 2020-10-04T10:16:52.6099220Z Content type 'application/x-gzip' length 74355 bytes (72 KB) 2020-10-04T10:16:52.6099860Z ================================================== 2020-10-04T10:16:52.6100210Z downloaded 72 KB 2020-10-04T10:16:52.6100400Z 2020-10-04T10:16:52.6188090Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/tinytex_0.26.tgz' 2020-10-04T10:16:52.7369570Z Content type 'application/x-gzip' length 112365 bytes (109 KB) 2020-10-04T10:16:52.7392670Z ================================================== 2020-10-04T10:16:52.7411170Z downloaded 109 KB 2020-10-04T10:16:52.7417870Z 2020-10-04T10:16:52.7427050Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/xfun_0.18.tgz' 2020-10-04T10:16:52.8791430Z Content type 'application/x-gzip' length 262275 bytes (256 KB) 2020-10-04T10:16:52.8896400Z ================================================== 2020-10-04T10:16:52.8916630Z downloaded 256 KB 2020-10-04T10:16:52.8918290Z 2020-10-04T10:16:52.8920330Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/stringi_1.5.3.tgz' 2020-10-04T10:16:53.0162340Z Content type 'application/x-gzip' length 13641892 bytes (13.0 MB) 2020-10-04T10:16:53.2427300Z ================================================== 2020-10-04T10:16:53.2428760Z downloaded 13.0 MB 2020-10-04T10:16:53.2428970Z 2020-10-04T10:16:53.2604230Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/askpass_1.1.tgz' 2020-10-04T10:16:53.4392220Z Content type 'application/x-gzip' length 21511 bytes (21 KB) 2020-10-04T10:16:53.4392930Z ================================================== 2020-10-04T10:16:53.4393320Z downloaded 21 KB 2020-10-04T10:16:53.4393520Z 2020-10-04T10:16:53.4426820Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/backports_1.1.10.tgz' 2020-10-04T10:16:53.6478490Z Content type 'application/x-gzip' length 78356 bytes (76 KB) 2020-10-04T10:16:53.6503090Z ================================================== 2020-10-04T10:16:53.6503490Z downloaded 76 KB 2020-10-04T10:16:53.6503760Z 2020-10-04T10:16:53.6589230Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/base64enc_0.1-3.tgz' 2020-10-04T10:16:53.7842520Z Content type 'application/x-gzip' length 31695 bytes (30 KB) 2020-10-04T10:16:53.7865470Z ================================================== 2020-10-04T10:16:53.7865870Z downloaded 30 KB 2020-10-04T10:16:53.7866070Z 2020-10-04T10:16:53.7953930Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/commonmark_1.7.tgz' 2020-10-04T10:16:53.9138260Z Content type 'application/x-gzip' length 310007 bytes (302 KB) 2020-10-04T10:16:53.9212090Z ================================================== 2020-10-04T10:16:53.9213440Z downloaded 302 KB 2020-10-04T10:16:53.9214490Z 2020-10-04T10:16:53.9251220Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/curl_4.3.tgz' 2020-10-04T10:16:54.1303270Z Content type 'application/x-gzip' length 741519 bytes (724 KB) 2020-10-04T10:16:54.1435470Z ================================================== 2020-10-04T10:16:54.1438150Z downloaded 724 KB 2020-10-04T10:16:54.1438450Z 2020-10-04T10:16:54.1474670Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/digest_0.6.25.tgz' 2020-10-04T10:16:54.2665970Z Content type 'application/x-gzip' length 246065 bytes (240 KB) 2020-10-04T10:16:54.2850730Z ================================================== 2020-10-04T10:16:54.2851660Z downloaded 240 KB 2020-10-04T10:16:54.2854380Z 2020-10-04T10:16:54.2906010Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/dplyr_1.0.2.tgz' 2020-10-04T10:16:54.4994470Z Content type 'application/x-gzip' length 1215871 bytes (1.2 MB) 2020-10-04T10:16:54.5249240Z ================================================== 2020-10-04T10:16:54.5249740Z downloaded 1.2 MB 2020-10-04T10:16:54.5249940Z 2020-10-04T10:16:54.5439300Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/fs_1.5.0.tgz' 2020-10-04T10:16:54.6774870Z Content type 'application/x-gzip' length 545211 bytes (532 KB) 2020-10-04T10:16:54.7003020Z ================================================== 2020-10-04T10:16:54.7103010Z downloaded 532 KB 2020-10-04T10:16:54.7204320Z 2020-10-04T10:16:54.7209400Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/getPass_0.2-2.tgz' 2020-10-04T10:16:54.8342150Z Content type 'application/x-gzip' length 232858 bytes (227 KB) 2020-10-04T10:16:54.8404660Z ================================================== 2020-10-04T10:16:54.8405090Z downloaded 227 KB 2020-10-04T10:16:54.8405290Z 2020-10-04T10:16:54.8511840Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/htmltools_0.5.0.tgz' 2020-10-04T10:16:55.0624780Z Content type 'application/x-gzip' length 219376 bytes (214 KB) 2020-10-04T10:16:55.0658550Z ================================================== 2020-10-04T10:16:55.0658940Z downloaded 214 KB 2020-10-04T10:16:55.0659190Z 2020-10-04T10:16:55.0691040Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/httr_1.4.2.tgz' 2020-10-04T10:16:55.2193080Z Content type 'application/x-gzip' length 498155 bytes (486 KB) 2020-10-04T10:16:55.2366290Z ================================================== 2020-10-04T10:16:55.2366810Z downloaded 486 KB 2020-10-04T10:16:55.2367010Z 2020-10-04T10:16:55.2504410Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/jsonlite_1.7.1.tgz' 2020-10-04T10:16:55.3755380Z Content type 'application/x-gzip' length 1123583 bytes (1.1 MB) 2020-10-04T10:16:55.4011390Z ================================================== 2020-10-04T10:16:55.4012180Z downloaded 1.1 MB 2020-10-04T10:16:55.4012530Z 2020-10-04T10:16:55.4160290Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/magrittr_1.5.tgz' 2020-10-04T10:16:55.6684730Z Content type 'application/x-gzip' length 153226 bytes (149 KB) 2020-10-04T10:16:55.6710040Z ================================================== 2020-10-04T10:16:55.6710460Z downloaded 149 KB 2020-10-04T10:16:55.6710750Z 2020-10-04T10:16:55.6871520Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/mime_0.9.tgz' 2020-10-04T10:16:55.8529710Z Content type 'application/x-gzip' length 35303 bytes (34 KB) 2020-10-04T10:16:55.8536960Z ================================================== 2020-10-04T10:16:55.8537700Z downloaded 34 KB 2020-10-04T10:16:55.8537980Z 2020-10-04T10:16:55.8631330Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/rlang_0.4.7.tgz' 2020-10-04T10:16:56.0881490Z Content type 'application/x-gzip' length 1210897 bytes (1.2 MB) 2020-10-04T10:16:56.1034680Z ================================================== 2020-10-04T10:16:56.1035160Z downloaded 1.2 MB 2020-10-04T10:16:56.1035360Z 2020-10-04T10:16:56.1178090Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/rmarkdown_2.3.tgz' 2020-10-04T10:16:56.2379140Z Content type 'application/x-gzip' length 3573038 bytes (3.4 MB) 2020-10-04T10:16:56.2752330Z ================================================== 2020-10-04T10:16:56.2752900Z downloaded 3.4 MB 2020-10-04T10:16:56.2753150Z 2020-10-04T10:16:56.3042010Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/stringr_1.4.0.tgz' 2020-10-04T10:16:56.5498630Z Content type 'application/x-gzip' length 210650 bytes (205 KB) 2020-10-04T10:16:56.5559770Z ================================================== 2020-10-04T10:16:56.5560150Z downloaded 205 KB 2020-10-04T10:16:56.5560430Z 2020-10-04T10:16:56.5657760Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/uuid_0.1-4.tgz' 2020-10-04T10:16:56.6934190Z Content type 'application/x-gzip' length 27811 bytes (27 KB) 2020-10-04T10:16:56.6934820Z ================================================== 2020-10-04T10:16:56.6935150Z downloaded 27 KB 2020-10-04T10:16:56.6935340Z 2020-10-04T10:16:56.7026560Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/assertthat_0.2.1.tgz' 2020-10-04T10:16:56.8245710Z Content type 'application/x-gzip' length 52572 bytes (51 KB) 2020-10-04T10:16:56.8265680Z ================================================== 2020-10-04T10:16:56.8266710Z downloaded 51 KB 2020-10-04T10:16:56.8267680Z 2020-10-04T10:16:56.8460800Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/openssl_1.4.3.tgz' 2020-10-04T10:16:56.9669420Z Content type 'application/x-gzip' length 2863764 bytes (2.7 MB) 2020-10-04T10:16:56.9971860Z ================================================== 2020-10-04T10:16:56.9973410Z downloaded 2.7 MB 2020-10-04T10:16:56.9973910Z 2020-10-04T10:16:57.0088600Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/R6_2.4.1.tgz' 2020-10-04T10:16:57.1963660Z Content type 'application/x-gzip' length 57553 bytes (56 KB) 2020-10-04T10:16:57.1984510Z ================================================== 2020-10-04T10:16:57.1987660Z downloaded 56 KB 2020-10-04T10:16:57.1989800Z 2020-10-04T10:16:57.2092630Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/sodium_1.1.tgz' 2020-10-04T10:16:57.3337570Z Content type 'application/x-gzip' length 651925 bytes (636 KB) 2020-10-04T10:16:57.3486450Z ================================================== 2020-10-04T10:16:57.3490960Z downloaded 636 KB 2020-10-04T10:16:57.3491240Z 2020-10-04T10:16:57.3618700Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/yaml_2.2.1.tgz' 2020-10-04T10:16:57.4896750Z Content type 'application/x-gzip' length 203104 bytes (198 KB) 2020-10-04T10:16:57.4944490Z ================================================== 2020-10-04T10:16:57.4948810Z downloaded 198 KB 2020-10-04T10:16:57.4949610Z 2020-10-04T10:16:57.5065060Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/filelock_1.0.2.tgz' 2020-10-04T10:16:57.6317070Z Content type 'application/x-gzip' length 26726 bytes (26 KB) 2020-10-04T10:16:57.6319080Z ================================================== 2020-10-04T10:16:57.6319830Z downloaded 26 KB 2020-10-04T10:16:57.6321650Z 2020-10-04T10:16:57.6415280Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/rappdirs_0.3.1.tgz' 2020-10-04T10:16:57.7673450Z Content type 'application/x-gzip' length 145341 bytes (141 KB) 2020-10-04T10:16:57.7700800Z ================================================== 2020-10-04T10:16:57.7701260Z downloaded 141 KB 2020-10-04T10:16:57.7701460Z 2020-10-04T10:16:57.7799100Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/rprojroot_1.3-2.tgz' 2020-10-04T10:16:58.0034470Z Content type 'application/x-gzip' length 79148 bytes (77 KB) 2020-10-04T10:16:58.0048410Z ================================================== 2020-10-04T10:16:58.0048870Z downloaded 77 KB 2020-10-04T10:16:58.0049130Z 2020-10-04T10:16:58.0139180Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/blastula_0.3.2.tgz' 2020-10-04T10:16:58.1487440Z Content type 'application/x-gzip' length 2351553 bytes (2.2 MB) 2020-10-04T10:16:58.1863490Z ================================================== 2020-10-04T10:16:58.1864640Z downloaded 2.2 MB 2020-10-04T10:16:58.1864900Z 2020-10-04T10:16:58.2067670Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/keyring_1.1.0.tgz' 2020-10-04T10:16:58.3273970Z Content type 'application/x-gzip' length 335291 bytes (327 KB) 2020-10-04T10:16:58.3364780Z ================================================== 2020-10-04T10:16:58.3366680Z downloaded 327 KB 2020-10-04T10:16:58.3366950Z 2020-10-04T10:16:58.3499570Z trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/here_0.1.tgz' 2020-10-04T10:16:58.5727070Z Content type 'application/x-gzip' length 18008 bytes (17 KB) 2020-10-04T10:16:58.5735830Z ================================================== 2020-10-04T10:16:58.5736500Z downloaded 17 KB 2020-10-04T10:16:58.5737310Z 2020-10-04T10:17:04.1309430Z 2020-10-04T10:17:04.1310200Z The downloaded binary packages are in 2020-10-04T10:17:04.1310980Z /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//Rtmprgpol6/downloaded_packages 2020-10-04T10:17:04.1764060Z ##[group]Run Rscript -e 'source(here::here("R", "send-basic-email.R"), echo = TRUE)' 2020-10-04T10:17:04.1764840Z Rscript -e 'source(here::here("R", "send-basic-email.R"), echo = TRUE)' 2020-10-04T10:17:04.1926010Z shell: /bin/bash -e {0} 2020-10-04T10:17:04.1926670Z env: 2020-10-04T10:17:04.1927460Z R_LIBS_USER: /Users/runner/work/_temp/Library 2020-10-04T10:17:04.1927830Z TZ: UTC 2020-10-04T10:17:04.1928120Z _R_CHECK_SYSTEM_CLOCK_: FALSE 2020-10-04T10:17:04.1928430Z NOT_CRAN: true 2020-10-04T10:17:04.1929690Z SMTP_PASSWORD: *** 2020-10-04T10:17:04.1929970Z ##[endgroup] 2020-10-04T10:17:04.5990060Z 2020-10-04T10:17:04.5991570Z > library(blastula) 2020-10-04T10:17:04.8061750Z 2020-10-04T10:17:04.8062610Z > smtp_send(email = compose_email("Hello; body of email"), 2020-10-04T10:17:04.8063390Z + from = "dailyhousepriceupdates@gmail.com", to = "wfmackey@gmail.com", 2020-10-04T10:17:04.8064000Z + subject .... [TRUNCATED] 2020-10-04T10:17:06.0416480Z ##[error]Error in curl_fetch_memory(smtp_server, handle = h) : Login denied 2020-10-04T10:17:06.0422570Z Calls: source ... eval -> smtp_send -> -> curl_fetch_memory 2020-10-04T10:17:06.0423110Z Execution halted 2020-10-04T10:17:06.0516320Z ##[error]Process completed with exit code 1. 2020-10-04T10:17:06.0694730Z Post job cleanup. 2020-10-04T10:17:06.2122650Z [command]/usr/local/bin/git version 2020-10-04T10:17:06.2215960Z git version 2.28.0 2020-10-04T10:17:06.2270420Z [command]/usr/local/bin/git config --local --name-only --get-regexp core\.sshCommand 2020-10-04T10:17:06.2351490Z [command]/usr/local/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2020-10-04T10:17:06.3378560Z [command]/usr/local/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2020-10-04T10:17:06.3441400Z http.https://github.com/.extraheader 2020-10-04T10:17:06.3454460Z [command]/usr/local/bin/git config --local --unset-all http.https://github.com/.extraheader 2020-10-04T10:17:06.3534200Z [command]/usr/local/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2020-10-04T10:17:06.4761620Z Cleaning up orphan processes ```
maxheld83 commented 3 years ago

I want to use Github Actions to automatically send this email. I have stored the password in quotation marks in the project's Secrets as SMTP_PASSWORD, and am setting the environment variable with SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}

This is a shot in the dark, but I don't think you need the passwords in quotation marks, the secrets UI on github.com accepts strings as is. Perhaps this leads to "'foo'", where " is erroneously used as part of the SMTP_PASSWORD.

Ben8t commented 3 years ago

Same problem here... Work perfectly fine locally but not with GitHub Action.

Seems like the problem exists also within GitLab CI.