Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ updates:
- dependency-type: "all"
groups:
docker:
patterns:
- "github.com/docker/*"
- "github.com/moby/*"
patterns:
- "github.com/docker/*"
- "github.com/moby/*"
all:
patterns:
- "*"
Expand All @@ -37,4 +37,3 @@ updates:
all:
patterns:
- "*"

5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI Build + Unit Test

on:
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
Expand All @@ -15,6 +15,9 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

# yamllint is installed in GitHub Actions base runner image: https://github.com/adrienverge/yamllint/pull/588
- run: yamllint .

- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Release binary builder

on:
on: # yamllint disable-line rule:truthy
release:
types: [published]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Scorecard analysis

on:
on: # yamllint disable-line rule:truthy
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Runs all ecosystems cached and concurrently.
name: Smoke

on:
on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:

Expand Down
11 changes: 11 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
extends: default

rules:
comments:
min-spaces-from-content: 1
comments-indentation: disable
document-start: disable
indentation:
indent-sequences: consistent
line-length: disable
1 change: 0 additions & 1 deletion testdata/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ credentials:
host: github.com
username: x-access-token
password: $LOCAL_GITHUB_ACCESS_TOKEN

202 changes: 101 additions & 101 deletions testdata/go/allow-go.yaml
Original file line number Diff line number Diff line change
@@ -1,112 +1,112 @@
input:
job:
package-manager: go_modules
allowed-updates:
- dependency-name: github.com/fatih/color
source:
provider: github
repo: dependabot/smoke-tests
directory: /
commit: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
job:
package-manager: go_modules
allowed-updates:
- dependency-name: github.com/fatih/color
source:
provider: github
repo: dependabot/smoke-tests
directory: /
commit: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
output:
- type: update_dependency_list
expect:
data:
dependencies:
- name: github.com/fatih/color
requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
version: 1.7.0
- name: rsc.io/qr
requirements: []
version: 0.1.0
- name: rsc.io/quote
requirements:
- file: go.mod
groups: []
requirement: v1.4.0
source:
source: rsc.io/quote
type: default
version: 1.4.0
dependency_files:
- /go.mod
- /go.sum
data:
dependencies:
- name: github.com/fatih/color
requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
version: 1.7.0
- name: rsc.io/qr
requirements: []
version: 0.1.0
- name: rsc.io/quote
requirements:
- file: go.mod
groups: []
requirement: v1.4.0
source:
source: rsc.io/quote
type: default
version: 1.4.0
dependency_files:
- /go.mod
- /go.sum
- type: create_pull_request
expect:
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
dependencies:
- name: github.com/fatih/color
previous-requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
previous-version: 1.7.0
requirements:
- file: go.mod
groups: []
requirement: 1.13.0
source:
source: github.com/fatih/color
type: default
version: 1.13.0
updated-dependency-files:
- content: |
module github.com/dependabot/vgotest
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
dependencies:
- name: github.com/fatih/color
previous-requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
previous-version: 1.7.0
requirements:
- file: go.mod
groups: []
requirement: 1.13.0
source:
source: github.com/fatih/color
type: default
version: 1.13.0
updated-dependency-files:
- content: |
module github.com/dependabot/vgotest

go 1.12
go 1.12

require (
github.com/fatih/color v1.13.0
golang.org/x/sys v0.0.0-20220731174439-a90be440212d // indirect
rsc.io/qr v0.1.0
rsc.io/quote v1.4.0
)
require (
github.com/fatih/color v1.13.0
golang.org/x/sys v0.0.0-20220731174439-a90be440212d // indirect
rsc.io/qr v0.1.0
rsc.io/quote v1.4.0
)

replace rsc.io/qr => github.com/rsc/qr v0.2.0
content_encoding: utf-8
deleted: false
directory: /
name: go.mod
operation: update
support_file: false
type: file
- content: |
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/rsc/qr v0.2.0 h1:tH61+huiZvu+hXL1VUovAu2AnhdG4eJQk2+on3XsDBQ=
github.com/rsc/qr v0.2.0/go.mod h1:IF+uZjkb9fqyeF/4tlBoynqmQxUoPfWEKh921coOuXs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d h1:Sv5ogFZatcgIMMtBSTTAgMYsicp25MXBubjXNDKwm80=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
rsc.io/quote v1.4.0 h1:tYuJspOzwTRMUOX6qmSDRTEKFVV80GM0/l89OLZuVNg=
rsc.io/quote v1.4.0/go.mod h1:S2vMDfxMfk+OGQ7xf1uNqJCSuSPCW5QC127LHYfOJmQ=
rsc.io/sampler v1.0.0 h1:CZX0Ury6np11Lwls9Jja2rFf3YrNPeUPAWiEVrJ0u/4=
rsc.io/sampler v1.0.0/go.mod h1:cqxpM3ZVz9VtirqxZPmrWzkQ+UkiNiGtkrN+B+i8kx8=
content_encoding: utf-8
deleted: false
directory: /
name: go.sum
operation: update
support_file: false
type: file
replace rsc.io/qr => github.com/rsc/qr v0.2.0
content_encoding: utf-8
deleted: false
directory: /
name: go.mod
operation: update
support_file: false
type: file
- content: |
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/rsc/qr v0.2.0 h1:tH61+huiZvu+hXL1VUovAu2AnhdG4eJQk2+on3XsDBQ=
github.com/rsc/qr v0.2.0/go.mod h1:IF+uZjkb9fqyeF/4tlBoynqmQxUoPfWEKh921coOuXs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d h1:Sv5ogFZatcgIMMtBSTTAgMYsicp25MXBubjXNDKwm80=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
rsc.io/quote v1.4.0 h1:tYuJspOzwTRMUOX6qmSDRTEKFVV80GM0/l89OLZuVNg=
rsc.io/quote v1.4.0/go.mod h1:S2vMDfxMfk+OGQ7xf1uNqJCSuSPCW5QC127LHYfOJmQ=
rsc.io/sampler v1.0.0 h1:CZX0Ury6np11Lwls9Jja2rFf3YrNPeUPAWiEVrJ0u/4=
rsc.io/sampler v1.0.0/go.mod h1:cqxpM3ZVz9VtirqxZPmrWzkQ+UkiNiGtkrN+B+i8kx8=
content_encoding: utf-8
deleted: false
directory: /
name: go.sum
operation: update
support_file: false
type: file
- type: mark_as_processed
expect:
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
86 changes: 43 additions & 43 deletions testdata/go/close-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
input:
job:
package-manager: go_modules
dependencies:
- none
security-updates-only: true
source:
provider: github
repo: dependabot/smoke-tests
directory: /
commit: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
updating-a-pull-request: true
job:
package-manager: go_modules
dependencies:
- none
security-updates-only: true
source:
provider: github
repo: dependabot/smoke-tests
directory: /
commit: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
updating-a-pull-request: true
output:
- type: update_dependency_list
expect:
data:
dependencies:
- name: github.com/fatih/color
requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
version: 1.7.0
- name: rsc.io/qr
requirements: []
version: 0.1.0
- name: rsc.io/quote
requirements:
- file: go.mod
groups: []
requirement: v1.4.0
source:
source: rsc.io/quote
type: default
version: 1.4.0
dependency_files:
- /go.mod
- /go.sum
data:
dependencies:
- name: github.com/fatih/color
requirements:
- file: go.mod
groups: []
requirement: v1.7.0
source:
source: github.com/fatih/color
type: default
version: 1.7.0
- name: rsc.io/qr
requirements: []
version: 0.1.0
- name: rsc.io/quote
requirements:
- file: go.mod
groups: []
requirement: v1.4.0
source:
source: rsc.io/quote
type: default
version: 1.4.0
dependency_files:
- /go.mod
- /go.sum
- type: close_pull_request
expect:
data:
dependency-names:
- none
reason: dependency_removed
data:
dependency-names:
- none
reason: dependency_removed
- type: mark_as_processed
expect:
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
data:
base-commit-sha: 832e37c1a7a4ef89feb9dc7cfa06f62205191994
Loading
Loading