This repo is a fork of Dependabot Script
rbenv install
(Install Ruby version from.ruby-version
)bundle install
The Bash script dependabot_helpers.sh
helps automate the installation of the
Dependabot Native Helpers as described
here.
It is designed to be run from within
aws_codecommit_update_script.rb
since this
ruby script will first set up the required environment variables.
It is currently designed to install all possible native helpers, which includes: Terraform, Python, Go (Dep & Modules), Elixir, PHP, JS
This also helps preserve your existing environment variables, including your PATH
.
- Please note the following pre-requisites before running this script
- An environment variable named
GITHUB_ACCESS_TOKEN
that contains a personal github token with fullrepo
access. - An environment variable named
AWS_REGION
that passes in the name of the AWS Region, i.e.us-east-1
- An AWS authentication (this script was run under the assumptive usage of
aws-vault) that has permissions allowing
CodeCommit access including:
- ListPullRequests
- BatchGetCommits
- GetBranch
- GetCommit
- GetFile
- GetFolder
- GetPullRequest
- GetRepository
- CreateBranch
- CreateCommit
- CreatePullRequest
- An environment variable named
ruby aws_codecommit_update_script.rb [options]
Option Name | Value | Required |
---|---|---|
-p, --package-manager-list | space-delimited package manager(s) to run against from this list:bundler pip npm_and_yarn maven gradle cargo hex composer nuget dep go_modules elm submodules docker terraform github_actions |
yes (this OR --all-package-managers) |
-a, --all-package-managers | run against all package managers (CANNOT be used with --package-manager-list) | yes (this OR --package-manager-list) |
-r, --project-path | name of the AWS CodeCommit repository | yes |
-d, --directory-path | location of the base dependency files (default: /) | no |
-c, --codecommit-branch | branch of the AWS CodeCommit repository to check against (default: master) | no |
If you run into any trouble with the above please create an issue!