Skip to content

Commit 04ed469

Browse files
authored
CI: update action deps (#3692)
* CI: update action deps * gitignore * CI: pin actions to commits * CI: dependabot.yml * windows-latest
1 parent b0f2ca0 commit 04ed469

17 files changed

+65
-48
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"
11+
- package-ecosystem: "uv"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"

.github/workflows/bats-hub.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
2323
2424
- name: "Check out CrowdSec repository"
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
with:
2727
fetch-depth: 0
2828
submodules: true
2929

3030
- name: "Set up Go"
31-
uses: actions/setup-go@v5
31+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3232
with:
3333
go-version-file: go.mod
3434

@@ -53,7 +53,7 @@ jobs:
5353
run: ./test/bin/collect-hub-coverage ./hub >> $GITHUB_ENV
5454

5555
- name: "Create Parsers badge"
56-
uses: schneegans/[email protected]
56+
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
5757
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }}
5858
with:
5959
auth: ${{ secrets.GIST_BADGES_SECRET }}
@@ -64,7 +64,7 @@ jobs:
6464
color: ${{ env.PARSERS_BADGE_COLOR }}
6565

6666
- name: "Create Scenarios badge"
67-
uses: schneegans/[email protected]
67+
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
6868
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }}
6969
with:
7070
auth: ${{ secrets.GIST_BADGES_SECRET }}

.github/workflows/bats-mysql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
2929
3030
- name: "Check out CrowdSec repository"
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
fetch-depth: 0
3434
submodules: true
3535

3636
- name: "Set up Go"
37-
uses: actions/setup-go@v5
37+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3838
with:
3939
go-version-file: go.mod
4040

.github/workflows/bats-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
3838
3939
- name: "Check out CrowdSec repository"
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4141
with:
4242
fetch-depth: 0
4343
submodules: true
4444

4545
- name: "Set up Go"
46-
uses: actions/setup-go@v5
46+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4747
with:
4848
go-version-file: go.mod
4949

.github/workflows/bats-sqlite-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
2424
2525
- name: "Check out CrowdSec repository"
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727
with:
2828
fetch-depth: 0
2929
submodules: true
3030

3131
- name: "Set up Go"
32-
uses: actions/setup-go@v5
32+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3333
with:
3434
go-version-file: go.mod
3535

@@ -75,7 +75,7 @@ jobs:
7575
if: ${{ always() }}
7676

7777
- name: Upload bats coverage to codecov
78-
uses: codecov/codecov-action@v4
78+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
7979
with:
8080
files: ./coverage-bats.out
8181
flags: bats

.github/workflows/cache-cleanup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

1616
- name: Cleanup
1717
run: |

.github/workflows/ci-windows-build-msi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ on:
2222
jobs:
2323
build:
2424
name: Build
25-
runs-on: windows-2019
25+
runs-on: windows-latest
2626

2727
steps:
2828

2929
- name: Check out code into the Go module directory
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
with:
3232
fetch-depth: 0
3333
submodules: false
3434

3535
- name: "Set up Go"
36-
uses: actions/setup-go@v5
36+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3737
with:
3838
go-version-file: go.mod
3939

4040
- name: Build
4141
run: make windows_installer BUILD_RE2_WASM=1
4242
- name: Upload MSI
43-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4444
with:
4545
path: crowdsec*msi
4646
name: crowdsec.msi

.github/workflows/ci_release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
# Drafts your next Release notes as Pull Requests are merged into "master"
22-
- uses: release-drafter/release-drafter@v6
22+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2323
with:
2424
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
2525
config-name: release-drafter.yml

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ jobs:
4444

4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@v4
47+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4848
with:
4949
# required to pick up tags for BUILD_VERSION
5050
fetch-depth: 0
5151

5252
- name: "Set up Go"
53-
uses: actions/setup-go@v5
53+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
5454
with:
5555
go-version-file: go.mod
5656
cache-dependency-path: "**/go.sum"
5757

5858
# Initializes the CodeQL tools for scanning.
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@v3
60+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
6161
with:
6262
languages: ${{ matrix.language }}
6363
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -68,7 +68,7 @@ jobs:
6868
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6969
# If this step fails, then you should remove it and run the build manually (see below)
7070
# - name: Autobuild
71-
# uses: github/codeql-action/autobuild@v3
71+
# uses: github/codeql-action/autobuild@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
7272

7373
# ℹ️ Command-line programs to run using the OS shell.
7474
# 📚 https://git.io/JvXDl
@@ -81,4 +81,4 @@ jobs:
8181
make clean build BUILD_RE2_WASM=1
8282
8383
- name: Perform CodeQL Analysis
84-
uses: github/codeql-action/analyze@v3
84+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2

.github/workflows/docker-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
steps:
2929

3030
- name: Check out the repo
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Set up Docker Buildx
36-
uses: docker/setup-buildx-action@v3
36+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
3737
with:
3838
buildkitd-config: .github/buildkit.toml
3939

4040
- name: "Build image"
41-
uses: docker/build-push-action@v6
41+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4242
with:
4343
context: .
4444
file: ./Dockerfile${{ matrix.flavor == 'debian' && '.debian' || '' }}
@@ -53,11 +53,11 @@ jobs:
5353
run: docker network create net-test
5454

5555
- name: Install uv
56-
uses: astral-sh/setup-uv@v5
56+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
5757
with:
5858
version: 0.5.24
5959
enable-cache: true
60-
cache-dependency-glob: "./docker/test/uv.lock"
60+
working-directory: "./docker/test"
6161

6262
- name: "Set up Python"
6363
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)