File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22# For more examples of what you can do, see the smoke tests: https://github.com/dependabot/smoke-tests/tree/main/tests
33
44job :
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments