Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update CI action versions, remove push trigger #709

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 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,18 +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
ssh-key: "${{ secrets.RELEASE_KEY }}"
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4

- 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
13 changes: 8 additions & 5 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,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
ssh-key: "${{ secrets.RELEASE_KEY }}"
- run: /usr/bin/git config --global user.email actions@github.com
- run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
- run: hack/tag-release.sh

- name: Tag release
run: |
/usr/bin/git config --global user.email actions@github.com
/usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
hack/tag-release.sh