Skip to content

Commit fe6c600

Browse files
committed
add a bundler example
1 parent 5d14560 commit fe6c600

File tree

9 files changed

+78
-2
lines changed

9 files changed

+78
-2
lines changed

.github/dependabot/bundler.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is the input to Dependabot CLI.
2+
# For more examples of what you can do, see the smoke tests: https://github.com/dependabot/smoke-tests/tree/main/tests
3+
4+
job:
5+
# this is the directory defined in dependabot-core for the ecosystem
6+
package-manager: bundler
7+
allowed-updates:
8+
- dependency-type: direct
9+
update-type: all
10+
source:
11+
provider: github
12+
repo: dependabot/example-cli-usage
13+
# looks absolute, but this is relative to the root of the repo
14+
directory: /bundler-example
15+
branch: main
16+
dependency-groups:
17+
- name: everything
18+
rules:
19+
- patterns:
20+
- "*"
21+
# credentials are optional, but are used to authenticate with private repos and registries when provided
22+
credentials:
23+
- type: git_source
24+
# Most credentials take a url or host
25+
host: github.com
26+
# Credentials will be either username/password or token
27+
username: x-access-token
28+
# Dependabot CLI will inject secrets from the environment
29+
password: $GITHUB_TOKEN

.github/dependabot/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ job:
1414
provider: github
1515
repo: dependabot/example-cli-usage
1616
# looks absolute, but this is relative to the root of the repo
17-
directory: /example
17+
directory: /go-example
1818
branch: main
1919
# credentials are optional, but are used to authenticate with private repos and registries when provided
2020
credentials:

.github/workflows/example.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: |
3131
./dependabot update -f .github/dependabot/go.yml --timeout 20m > result.jsonl || true
32+
./dependabot update -f .github/dependabot/bundler.yml --timeout 20m >> result.jsonl || true
3233
3334
- name: Upload result
3435
uses: actions/upload-artifact@v4

bundler-example/Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gem "rubocop", "0.76.0"
6+
gem "toml-rb", "2.2.0"
7+
gem 'rack', git: 'git@github.com:rack/rack.git', tag: '2.1.4'

bundler-example/Gemfile.lock

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
GIT
2+
remote: git@github.com:rack/rack.git
3+
revision: f3cf79d6460dc592767941806d1b2b7008f73e01
4+
tag: 2.1.4
5+
specs:
6+
rack (2.1.4)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
ast (2.4.2)
12+
citrus (3.0.2)
13+
jaro_winkler (1.5.4)
14+
parallel (1.22.1)
15+
parser (3.1.2.0)
16+
ast (~> 2.4.1)
17+
rainbow (3.1.1)
18+
rubocop (0.76.0)
19+
jaro_winkler (~> 1.5.1)
20+
parallel (~> 1.10)
21+
parser (>= 2.6)
22+
rainbow (>= 2.2.2, < 4.0)
23+
ruby-progressbar (~> 1.7)
24+
unicode-display_width (>= 1.4.0, < 1.7)
25+
ruby-progressbar (1.11.0)
26+
toml-rb (2.2.0)
27+
citrus (~> 3.0, > 3.0)
28+
unicode-display_width (1.6.1)
29+
30+
PLATFORMS
31+
ruby
32+
33+
DEPENDENCIES
34+
rack!
35+
rubocop (= 0.76.0)
36+
toml-rb (= 2.2.0)
37+
38+
BUNDLED WITH
39+
2.1.4
File renamed without changes.
File renamed without changes.
File renamed without changes.

example/main.go renamed to go-example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package example
1+
package go_example
22

33
import (
44
_ "golang.org/x/net/html"

0 commit comments

Comments
 (0)