Skip to content

Commit

Permalink
Merge pull request #395 from uselagoon/ci-updates
Browse files Browse the repository at this point in the history
ci updates
  • Loading branch information
smlx authored Feb 20, 2024
2 parents 48a33cf + d6043f1 commit 9b0f178
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@ updates:
directory: /
schedule:
interval: weekly
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: docker
directory: /
schedule:
interval: daily
groups:
docker:
patterns:
- "*"
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
groups:
gomod:
patterns:
- "*"
10 changes: 1 addition & 9 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@ jobs:
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-merge Dependabot PRs
# don't auto-merge action updates to appease OpenSSF scorecard
if: ${{ ! contains(steps.metadata.outputs.package-ecosystem, 'github-actions') }}
- name: Enable auto-merge for Dependabot PRs # these still need approval before merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Auto-approve Github maintained actions
if: contains(steps.metadata.outputs.dependency-names, 'github/codeql-action')
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 4 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ jobs:
go-version: stable
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
with:
args: --timeout=180s
args: --timeout=180s --enable gocritic
lint-commits:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5.4.5
with:
configFile: .github/commitlint.config.js
lint-actions:
permissions:
contents: read
Expand Down

0 comments on commit 9b0f178

Please sign in to comment.