Dependency Updates #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dependency Updates | |
| on: | |
| schedule: | |
| # Run weekly on Mondays at 9 AM UTC | |
| - cron: '0 9 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| name: Update Go Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| - name: Update Go dependencies | |
| run: | | |
| go get -u all | |
| go mod tidy | |
| go mod verify | |
| - name: Run tests with updated dependencies | |
| run: go test ./... | |
| - name: Check for vulnerabilities | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'chore: update Go dependencies' | |
| title: 'chore: update Go dependencies' | |
| body: | | |
| This PR updates Go dependencies to their latest versions. | |
| ## Changes | |
| - Updated all Go dependencies to latest versions | |
| - Ran `go mod tidy` to clean up module file | |
| - Verified all tests pass with updated dependencies | |
| - Checked for security vulnerabilities with govulncheck | |
| ## Testing | |
| - [x] All tests pass | |
| - [x] No security vulnerabilities detected | |
| - [x] Module file is clean and verified | |
| This PR was automatically created by the dependency update workflow. | |
| branch: chore/update-dependencies | |
| delete-branch: true | |
| update-github-actions: | |
| name: Update GitHub Actions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update GitHub Actions versions | |
| uses: renovatebot/github-action@v39.2.3 | |
| with: | |
| configurationFile: .github/renovate.json | |
| token: ${{ secrets.GITHUB_TOKEN }} |