dot-check_test_token: Check Test PAT

.check_test_tokenR Documentation

Check Test PAT

Description

We use a fine-grained GitHub Personal Access Token in our auth testing. This function is memoised and checks that the token has the correct permissions to the various test repositories.

Usage

.check_test_token()

Arguments

test_token

github token, typically stored at TAN_GH_TOKEN

test_repos

repos used in testing

Details

It should have the following token permissions:

  • Contents (read/write)

  • Metadata (read)

on the following repositories

  • tanho63/piggyback

  • tanho63/piggyback-tests

  • tanho63/piggyback-private (a private repository)

Value

named vector of TRUE or FALSE as to whether the token is configured and can access the test repos.


cboettig/piggyback documentation built on Feb. 29, 2024, 2:35 a.m.