Skip to content

Commit d287082

Browse files
committed
add an actions job with grouping
1 parent 4bfbe54 commit d287082

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/dependabot/actions.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: github_actions
7+
allowed-updates:
8+
- dependency-type: direct
9+
update-type: all
10+
source:
11+
provider: github
12+
repo: dependabot/example-cli-usage
13+
directory: "*/**"
14+
branch: main
15+
dependency-groups:
16+
- name: everything
17+
rules:
18+
patterns:
19+
- "*"
20+
# credentials are optional, but are used to authenticate with private repos and registries when provided
21+
credentials:
22+
- type: git_source
23+
# Most credentials take a url or host
24+
host: github.com
25+
# Credentials will be either username/password or token
26+
username: x-access-token
27+
# Dependabot CLI will inject secrets from the environment
28+
password: $GITHUB_TOKEN

.github/dependabot/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# For more examples of what you can do, see the smoke tests: https://github.com/dependabot/smoke-tests/tree/main/tests
33

44
job:
5-
# this is the directory defined in dependabot-core
5+
# this is the directory defined in dependabot-core for the ecosystem
66
package-manager: go_modules
77
allowed-updates:
88
- dependency-type: direct

.github/workflows/example.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
# GITHUB_TOKEN shows an example of how Dependabot CLI can be used with secrets.
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: |
31-
./dependabot update -f .github/dependabot/go.yml --timeout 20m > result.jsonl
31+
./dependabot update -f .github/dependabot/go.yml --timeout 20m > result.jsonl || true
32+
./dependabot update -f .github/dependabot/actions.yml --timeout 20m >> result.jsonl || true
3233
3334
- name: Upload result
3435
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)