Skip to content

Commit

Permalink
Merge pull request #709 from bryantbiggs/chore/update-ci-versions
Browse files Browse the repository at this point in the history
chore: Update CI action versions, remove `push` trigger
  • Loading branch information
k8s-ci-robot authored and jaidevmane committed Apr 25, 2024
1 parent e07e43d commit 88d1697
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 26 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Github Action to create a release with goreleaser
name: Create Release

on:
workflow_dispatch:
push:
Expand All @@ -11,17 +12,17 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
ssh-key: "${{ secrets.RELEASE_KEY }}"

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: "Dependency Review"
on: [push, pull_request, workflow_dispatch]

on: [pull_request, workflow_dispatch]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
with:
vulnerability-check: false

- name: Dependency review
uses: actions/dependency-review-action@v4

govulncheck:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false

- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.2
go-version-file: go.mod

# [Info] Shows version of go that is (was) used
- run: go version
14 changes: 9 additions & 5 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ on:
jobs:
tag-release:
if: ${{ github.repository == 'kubernetes-sigs/aws-iam-authenticator' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: /usr/bin/git config --global user.email [email protected]
- run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
- run: hack/tag-release.sh
ssh-key: "${{ secrets.RELEASE_KEY }}"

- name: Tag release
run: |
/usr/bin/git config --global user.email [email protected]
/usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
hack/tag-release.sh

0 comments on commit 88d1697

Please sign in to comment.