Learn how to run your Autoblocks tests in a CI environment.
npx autoblocks testing exec
command.
GITHUB_TOKEN
as an environment variable?The CLI uses the automated GITHUB_TOKEN
secret
to fetch metadata about the run that is not directly available within the run’s context.The GITHUB_TOKEN
is created for you automatically by GitHub and is available to use in your workflow file.
You do not need to add it to your repository’s secrets.
Its scope is determined by your workflow’s permissions.[autoblocks]
:
AUTOBLOCKS_SLACK_WEBHOOK_URL
environment variable. To get set up:
AUTOBLOCKS_SLACK_WEBHOOK_URL
in addition to the secrets you already added in the setup sectionAUTOBLOCKS_DISABLE_GITHUB_COMMENTS
environment variable to 1
.GITHUB_TOKEN
to be restricted, you will need to explicitly give the workflow permission to post comments on pull requests or commits.
pull_request
event:push
event: