Skip to content

Commit 2121272

Browse files
authored
Merge pull request #719 from controlplaneio/dependabot/github_actions/gha-443ee8647f
chore(deps): bump the gha group with 9 updates
2 parents 436404d + d6372f7 commit 2121272

11 files changed

Lines changed: 80 additions & 42 deletions

.github/workflows/lint_bash.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Linting - Bash/Bats
3+
permissions: {}
34
# Split until path filtering for jobs added
45
# https://github.community/t/path-filtering-for-jobs-and-steps/16447
56
on:
@@ -18,16 +19,20 @@ jobs:
1819
shellcheck:
1920
name: shellcheck
2021
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
checks: write
2126
strategy:
2227
fail-fast: false
2328
matrix:
2429
extention: ["bash", "bats"]
2530
steps:
2631
- name: Checkout repository
27-
uses: actions/checkout@v6
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2833

2934
- name: Run shellcheck
30-
uses: reviewdog/action-shellcheck@v1
35+
uses: reviewdog/action-shellcheck@4c07458293ac342d477251099501a718ae5ef86e # v1
3136
with:
3237
pattern: "*.${{ matrix.extention }}"
3338
exclude: "./test/bin/*"

.github/workflows/lint_docker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Linting - Dockerfile
3+
permissions: {}
34
# Split until path filtering for jobs added
45
# https://github.community/t/path-filtering-for-jobs-and-steps/16447
56
on:
@@ -18,9 +19,13 @@ jobs:
1819
hadolint:
1920
name: hadolint
2021
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
checks: write
2126
steps:
2227
- name: Checkout repository
23-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2429

2530
- name: Run hadolint
26-
uses: reviewdog/action-hadolint@v1
31+
uses: reviewdog/action-hadolint@921946a7ebaaf08ac72607bad67209f4e52b5407 # v1

.github/workflows/lint_go.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Linting - Go
3+
permissions: {}
34
# Split until path filtering for jobs added
45
# https://github.community/t/path-filtering-for-jobs-and-steps/16447
56
on:
@@ -20,9 +21,13 @@ jobs:
2021
golangci-lint:
2122
name: golangci-lint
2223
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: write
27+
checks: write
2328
steps:
2429
- name: Checkout repository
25-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2631

2732
- name: Run golangci-lint
28-
uses: reviewdog/action-golangci-lint@v2
33+
uses: reviewdog/action-golangci-lint@c76cceaaab89abe74e649d2e34c6c9adc26662d2 # v2

.github/workflows/lint_yml.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Linting - YAML
3+
permissions: {}
34
# Split until path filtering for jobs added
45
# https://github.community/t/path-filtering-for-jobs-and-steps/16447
56
on:
@@ -18,9 +19,13 @@ jobs:
1819
yamllint:
1920
name: yamllint
2021
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
checks: write
2126
steps:
2227
- name: Checkout repository
23-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2429

2530
- name: Run yamllint
26-
uses: reviewdog/action-yamllint@v1
31+
uses: reviewdog/action-yamllint@f01d8a48fd8d89f89895499fca2cff09f9e9e8c0 # v1

.github/workflows/move_issues_to_board.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Move new issues into To Do
3-
3+
permissions: {}
44
on:
55
issues:
66
types: [opened]

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Release
3+
permissions: {}
34
on:
45
# https://github.com/actions/runner/issues/1007
56
push:
@@ -10,17 +11,20 @@ jobs:
1011
release:
1112
name: Release on GitHub
1213
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1316
steps:
1417
- name: Check out code
15-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1619

1720
- name: Set up Go
18-
uses: actions/setup-go@v6
21+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
1922
with:
2023
go-version-file: go.mod
24+
cache: false # don't rely on cache for release
2125

2226
- name: Launch goreleaser
23-
uses: goreleaser/goreleaser-action@v6
27+
uses: goreleaser/goreleaser-action@e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c # v7
2428
with:
2529
args: release
2630
env:

.github/workflows/release_containers.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Release Containers
3+
permissions: {}
34
on:
45
# https://github.com/actions/runner/issues/1007
56
push:
@@ -22,19 +23,19 @@ jobs:
2223

2324
steps:
2425
- name: Cache container layers
25-
uses: actions/cache@v5
26+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
2627
with:
2728
path: /tmp/.buildx-cache
2829
key: ${{ runner.os }}${{ matrix.containers.suffix }}-buildx-${{ github.sha }}
2930
restore-keys: |
3031
${{ runner.os }}${{ matrix.containers.suffix }}-buildx-
3132
3233
- name: Checkout
33-
uses: actions/checkout@v6
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3435

3536
- name: Generate container tags and labels
3637
id: docker_meta
37-
uses: docker/metadata-action@v5
38+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6
3839
with:
3940
# images: kubesec/kubesec,ghcr.io/controlplaneio/kubesec
4041
images: kubesec/kubesec
@@ -49,24 +50,24 @@ jobs:
4950
org.opencontainers.image.url=https://kubesec.io/
5051
5152
- name: Login to Docker Hub Registry
52-
uses: docker/login-action@v3
53+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
5354
with:
5455
registry: docker.io
5556
username: ${{ secrets.DOCKERHUB_USERNAME }}
5657
password: ${{ secrets.DOCKERHUB_TOKEN }}
5758

5859
# - name: Login to GitHub Container Registry
59-
# uses: docker/login-action@v3
60+
# uses: docker/login-action@v4
6061
# with:
6162
# registry: ghcr.io
6263
# username: ${{ github.repository_owner }}
6364
# password: ${{ secrets.CR_PAT }}
6465

6566
- name: Set up Docker Buildx
66-
uses: docker/setup-buildx-action@v3
67+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
6768

6869
- name: Build container and push tags
69-
uses: docker/build-push-action@v6
70+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7
7071
with:
7172
context: .
7273
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/release_containers_webhook.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Release Containers kubesec-webhook
3+
permissions: {}
34
on:
45
workflow_dispatch:
56
inputs:
@@ -21,14 +22,14 @@ jobs:
2122

2223
steps:
2324
- name: Checkout
24-
uses: actions/checkout@v6
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2526
with:
2627
repository: controlplaneio/kubesec-webhook
2728
ref: ${{ inputs.tag }}
2829

2930
- name: Generate container tags and labels
3031
id: docker_meta
31-
uses: docker/metadata-action@v5
32+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6
3233
with:
3334
# images: kubesec/kubesec,ghcr.io/controlplaneio/kubesec
3435
images: kubesec/kubesec-webhook
@@ -42,24 +43,24 @@ jobs:
4243
org.opencontainers.image.url=https://kubesec.io/
4344
4445
- name: Login to Docker Hub Registry
45-
uses: docker/login-action@v3
46+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
4647
with:
4748
registry: docker.io
4849
username: ${{ secrets.DOCKERHUB_USERNAME }}
4950
password: ${{ secrets.DOCKERHUB_TOKEN }}
5051

5152
# - name: Login to GitHub Container Registry
52-
# uses: docker/login-action@v3
53+
# uses: docker/login-action@v4
5354
# with:
5455
# registry: ghcr.io
5556
# username: ${{ github.repository_owner }}
5657
# password: ${{ secrets.CR_PAT }}
5758

5859
- name: Set up Docker Buildx
59-
uses: docker/setup-buildx-action@v3
60+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
6061

6162
- name: Build container and push tags
62-
uses: docker/build-push-action@v6
63+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7
6364
with:
6465
context: .
6566
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/security_analysis.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Security Analysis
3-
3+
permissions: {}
44
on:
55
push:
66
branches: [master]
@@ -15,38 +15,44 @@ jobs:
1515
# "Initialize CodeQL" fails on forks and the results would not submit either
1616
if: github.repository_owner == 'controlplaneio'
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
security-events: write
1821
steps:
1922
- name: Checkout repository
20-
uses: actions/checkout@v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2124

2225
# provide a more modern go until resolved in codeql action
2326
# https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087
2427
- name: Set up Go
25-
uses: actions/setup-go@v6
28+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
2629
with:
2730
go-version-file: go.mod
2831

2932
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
3134
with:
3235
languages: go
3336

3437
- name: Perform CodeQL Analysis
35-
uses: github/codeql-action/analyze@v4
38+
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
3639

3740
trivy:
3841
name: Trivy
3942
runs-on: ubuntu-latest
43+
permissions:
44+
contents: read
45+
security-events: write
4046
steps:
4147
- name: Checkout code
42-
uses: actions/checkout@v6
48+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4349

4450
- name: Build an image from Dockerfile
4551
run: |
4652
docker build . -t kubesec:${{ github.sha }}
4753
4854
- name: Run Trivy
49-
uses: aquasecurity/trivy-action@0.33.1
55+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
5056
with:
5157
image-ref: kubesec:${{ github.sha }}
5258
format: template
@@ -56,20 +62,24 @@ jobs:
5662
- name: Upload Trivy results to the Security tab
5763
# can't submit scan results on forks
5864
if: github.repository_owner == 'controlplaneio'
59-
uses: github/codeql-action/upload-sarif@v4
65+
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
6066
with:
6167
sarif_file: trivy-results.sarif
6268

6369
trufflehog:
6470
name: TruffleHog
6571
runs-on: ubuntu-latest
72+
permissions:
73+
contents: read
74+
pull-requests: write
75+
checks: write
6676
steps:
6777
- name: Checkout code
68-
uses: actions/checkout@v6
78+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6979
with:
7080
fetch-depth: 0
7181
- name: Run Trufflehog
72-
uses: trufflesecurity/trufflehog@v3.92.3
82+
uses: trufflesecurity/trufflehog@47e7b7cd74f578e1e3145d48f669f22fd1330ca6 # v3.94.3
7383
with:
7484
path: ./
7585
base: ""

.github/workflows/test_acceptance.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: Testing - Acceptance
3+
permissions: {}
34
# Split until path filtering for jobs added
45
# https://github.community/t/path-filtering-for-jobs-and-steps/16447
56
on:
@@ -26,10 +27,10 @@ jobs:
2627
runs-on: ubuntu-latest
2728
steps:
2829
- name: Checkout repository
29-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3031

3132
- name: Set up Go
32-
uses: actions/setup-go@v6
33+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
3334
with:
3435
go-version-file: go.mod
3536

@@ -38,7 +39,7 @@ jobs:
3839
make build
3940
4041
- name: Upload kubesec
41-
uses: actions/upload-artifact@v6
42+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
4243
with:
4344
name: kubesec
4445
path: dist/kubesec
@@ -55,13 +56,13 @@ jobs:
5556
test: ["acceptance", "remote"]
5657
steps:
5758
- name: Checkout code
58-
uses: actions/checkout@v6
59+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5960
with:
6061
# needed for bats tests
6162
submodules: true
6263

6364
- name: Download kubesec
64-
uses: actions/download-artifact@v7
65+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
6566
with:
6667
name: kubesec
6768
path: dist

0 commit comments

Comments
 (0)