Skip to content

Commit 37027a7

Browse files
committed
Update Dagger and build
* Update dagger actions to use pinnning. * Add /dagger to dependabot to keep the Dagger modules up-to-date. * Update dagger default Go version. * Update tutorials/whatsup Go version. * Update actions to use pinning. Signed-off-by: SuperQ <[email protected]>
1 parent 0a90db7 commit 37027a7

File tree

8 files changed

+18
-14
lines changed

8 files changed

+18
-14
lines changed

.github/dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
- package-ecosystem: "gomod"
8+
directory: "/dagger"
9+
schedule:
10+
interval: "monthly"
711
- package-ecosystem: "gomod"
812
directory: "/examples/middleware"
913
schedule:

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL

.github/workflows/container_description.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
1919
steps:
2020
- name: git checkout
21-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2222
- name: Set docker hub repo name
2323
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
2424
- name: Push README to Dockerhub
@@ -40,7 +40,7 @@ jobs:
4040
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
4141
steps:
4242
- name: git checkout
43-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
43+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4444
- name: Set quay.io org name
4545
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
4646
- name: Set quay.io repo name

.github/workflows/dagger-golangci-lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ permissions: # added using https://github.com/step-security/secure-repo
1717
jobs:
1818
golangci:
1919
permissions:
20-
contents: read # for actions/checkout to fetch code
20+
contents: read # for actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2121
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
2222
name: lint
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
26+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2727
- name: Lint
28-
uses: dagger/dagger-for-github@v5
28+
uses: dagger/dagger-for-github@8ab204f3cf74a4940a1648469c426ef0d28af7cc # v6.6.0
2929
with:
3030
version: "latest"
3131
verb: call

.github/workflows/go.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
supported_versions: ${{ steps.matrix.outputs.supported_versions }}
2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2828
- name: Read supported_go_versions.txt
2929
id: matrix
3030
run: |
@@ -43,17 +43,17 @@ jobs:
4343

4444
steps:
4545
- name: Checkout code
46-
uses: actions/[email protected].1
46+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4747

4848
- name: Run tests and check license
49-
uses: dagger/dagger-for-github@v5
49+
uses: dagger/dagger-for-github@8ab204f3cf74a4940a1648469c426ef0d28af7cc # v6.6.0
5050
with:
5151
version: "latest"
5252
verb: call
5353
args: -vvv --src . make --go-version ${{matrix.go_version}} --args 'check_license test'
5454

5555
- name: Run style and unused
56-
uses: dagger/dagger-for-github@v6
56+
uses: dagger/dagger-for-github@8ab204f3cf74a4940a1648469c426ef0d28af7cc # v6.6.0
5757
if: ${{ matrix.go_version == '1.21' }}
5858
with:
5959
version: "latest"

.github/workflows/update-go-versions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1717

1818
- name: Execute bash script
1919
run: bash update-go-version.bash
@@ -22,7 +22,7 @@ jobs:
2222
# no pull request will be created and the action exits silently.
2323
- name: Create a Pull Request
2424
if: github.event_name != 'pull_request'
25-
uses: peter-evans/create-pull-request@v6
25+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
2626
with:
2727
token: ${{ secrets.GITHUB_TOKEN }}
2828
commit-message: "Update Go Collector metrics for new Go version"

dagger/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func New(src *dagger.Directory) *ClientGolang {
3535
func (m *ClientGolang) Make(
3636
// +optional
3737
args string,
38-
// +default="1.20"
38+
// +default="1.23"
3939
goVersion string,
4040
// +optional
4141
env []string,

tutorials/whatsup/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/prometheus/client_golang/tutorials/whatsup
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/bwplotka/tracing-go v0.0.0-20230421061608-abdf862ceccd

0 commit comments

Comments
 (0)