sigs.k8s.io/cluster-api-provider-azure@v1.17.0/.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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
    24        with:
    25          egress-policy: audit
    26      - name: Set up Go 1.x
    27        uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
    28        with:
    29          go-version: '1.22'
    30        id: go
    31      - name: Check out code into the Go module directory
    32        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
    33      - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # tag=v4.0.2
    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'