sigs.k8s.io/cluster-api-provider-azure@v1.14.3/.github/workflows/dependabot-code-gen.yml (about)

     1  name: Dependabot code gen
     2  
     3  on:
     4    pull_request:
     5      branches:
     6        - dependabot/**
     7    push:
     8      branches:
     9        - dependabot/**
    10    workflow_dispatch:
    11  
    12  permissions:  # added using https://github.com/step-security/secure-repo
    13    contents: read
    14  
    15  jobs:
    16    build:
    17      permissions:
    18        contents: write  # for EndBug/add-and-commit
    19      name: Build
    20      runs-on: ubuntu-latest
    21      steps:
    22      - name: Harden Runner
    23        uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
    24        with:
    25          egress-policy: audit
    26      - name: Set up Go 1.x
    27        uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
    28        with:
    29          go-version: '1.20'
    30        id: go
    31      - name: Check out code into the Go module directory
    32        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
    33      - uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # tag=v4.0.1
    34        name: Restore go cache
    35        with:
    36          path: |
    37            ~/.cache/go-build
    38            ~/go/pkg/mod
    39          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    40          restore-keys: |
    41            ${{ runner.os }}-go-
    42      - name: Update all modules
    43        run: make modules
    44      - name: Update generated code
    45        run: make generate
    46      - uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4
    47        name: Commit changes
    48        with:
    49          author_name: dependabot[bot]
    50          author_email: 49699333+dependabot[bot]@users.noreply.github.com
    51          default_author: github_actor
    52          message: 'Update generated code'