github / github/gh-aw-threat-detection

[dependabot-agent] Add Dependabot configuration for github-actions and gomod ecosystems

Open
#1,051 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13
Forks
7
Avg merge
9h 52m
Merged PRs (30d)
25

Description

> [!CAUTION]
> Protected files were modified in this change.
> This pull request is in `request_review` mode and requires explicit human scrutiny before merge.
>
> Protected files: `.github/dependabot.yml`

## Dependency Release Train Summary

### What changed
- Package/ecosystem: repository governance (`.github/dependabot.yml`)
- Manifest(s): new `.github/dependabot.yml`
- Old version: none (no Dependabot config existed)
- New version: n/a
- Update type: other (tooling/config)

### Why now
No Dependabot configuration exists in this repository, yet it has ~30 GitHub Actions
references across workflows with inconsistent pinning. There is no active dependency
manifest for Go (empty `go.mod`, no `go.sum`) or any other ecosystem in this repo, so
enabling automated weekly `github-actions` and `gomod` update PRs is the safest
actionable freshness improvement available this run.

### Risk assessment
- Runtime/dev/build/CI scope: CI/build tooling only (Dependabot config), zero runtime impact
- Direct/transitive: n/a — no code change
- Reachability: n/a — governance file only

### Validation
- Commands run: `git status --short`, `git diff origin/main --stat`
- Result: single new file `.github/dependabot.yml`, valid YAML per Dependabot schema
- Remaining gaps: none

### Control Plane
- Correlation ID: 34329353546-155
- Central repo: githubnext/gh-aw-cao
- Run URL: https://github.com/githubnext/gh-aw-cao/actions/runs/34329353546

Smart-Dependabot-Merge-Candidate: yes

---

> [!NOTE]
> This was originally intended as a pull request, but the git push operation failed.
>
> **Original error:** The process '/usr/bin/git' failed with exit code 128
>
> **Workflow Run:** [View run details and download bundle artifact](https://github.com/githubnext/gh-aw-cao/actions/runs/34329760707)
>
> The bundle file is available in the `agent` artifact in the workflow run linked above.

Create the pull request manually

```sh
# Download the artifact from the workflow run
gh run download '34329760707' -n agent -D '/tmp/agent-34329760707'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-34329760707/aw-github-gh-aw-threat-detection-dependabot-agent-add-github-actions-config.bundle'
temp_ref='refs/bundles/create-pr-dependabot-agent-add-github-actions-config-746c880a'
target_ref='refs/heads/dependabot-agent/add-github-actions-config'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'dependabot-agent/add-github-actions-config'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch to the target remote
git push 'origin' 'dependabot-agent/add-github-actions-config'

# Create the pull request
gh pr create --title '[dependabot-agent] Add Dependabot configuration for github-actions and gomod ecosystems' --base 'main' --head 'dependabot-agent/add-github-actions-config' --repo 'github/gh-aw-threat-detection'
```

> Generated by [:dependabot: Dependabot / Release Trains](https://github.com/githubnext/gh-aw-cao/actions/runs/34329760707) · copilot · auto · 174.7 AIC · ⌖ 11.8 AIC · ⊞ 21.1K · [◷](https://github.com/search?q=repo%3Agithub%2Fgh-aw-threat-detection+%22gh-aw-workflow-id%3A+dependabot-release-train-updater%22&type=pullrequests)
>

Add this agentic workflow to your repo

To install this agentic workflow, run

```
gh aw add githubnext/gh-aw-cao/.github/workflows/dependabot-release-train-updater.md@main
```

Contributor guide

Open the contributing guide

Research direction

Start with the repository's existing workflow references and the proposed .github/dependabot.yml, then check Dependabot's configuration schema for the github-actions and Go ecosystems. Validate the YAML and confirm that the file enables the requested weekly update checks without changing runtime code.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
ci-cd, devops, tooling
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.