Skip to content

Commit

Permalink
Merge pull request dependabot#7407 from shu-mutou/dependabot-home-env
Browse files Browse the repository at this point in the history
Add `DEPENDABOT` environment variable for users
  • Loading branch information
jurre authored Jun 20, 2023
2 parents 6fbe380 + b12d34f commit e92409d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.updater-core
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ USER dependabot
ENV DEPENDABOT_HOME="/home/dependabot"
WORKDIR $DEPENDABOT_HOME

# For users to determine if dependabot is running
ENV DEPENDABOT=true

# Disable automatic pulling of files stored with Git LFS
# This avoids downloading large files not necessary for the dependabot scripts
ENV GIT_LFS_SKIP_SMUDGE=1
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ The [Dependabot CLI](https://github.com/dependabot/cli) is a newer tool that may
While it creates dependency diffs, it's currently missing the logic to turn those diffs into actual PR's. Nevertheless, it
may be useful for advanced users looking for examples of how to hack on Dependabot.

## Dependabot on CI

In an environment such as GitHub where Dependabot is running in a container, if you want to change your build or installation process depending on whether Dependabot is checking, you can determine it by the existence of `DEPENDABOT` environment variable.

# Contributing to Dependabot

## Reporting issues and Feature Requests
Expand Down

0 comments on commit e92409d

Please sign in to comment.