Skip to content
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
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
groups:
actions:
patterns:
- "*"
cooldown:
default-days: 7

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
groups:
all-minor-patch:
update-types:
- "minor"
- "patch"
cooldown:
default-days: 7
55 changes: 28 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,55 +15,56 @@ on:
- "main"

jobs:
build:
name: Build and Test
validate-workflows:
name: Validate GitHub Workflows
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Go
uses: actions/setup-go@v5
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
go-version: 1.24
cache: false # avoid cache-poisoning attacks

- name: Build
run: go build -v ./...
python-version: '3.13'

- name: Test
run: go test -v ./...
- name: Check Workflows
run: |
python -m pip install zizmor --root-user-action=ignore
zizmor .github/workflows/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

validate-workfows:
name: Validate GitHub Workflows
build:
name: Build and Test
runs-on: ubuntu-latest
needs: validate-workflows
Comment thread
alakae marked this conversation as resolved.
Resolved

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
python-version: '3.13'
go-version-file: go.mod
cache: false # avoid cache-poisoning attacks

- name: Check Workflows
run: |
python -m pip install zizmor --root-user-action=ignore
zizmor .github/workflows/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

release:
name: Create and Publish Release
Expand All @@ -77,15 +78,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: 1.24
go-version-file: go.mod
cache: false # avoid cache-poisoning attacks

- name: Install go tools
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cloudscale-ch/fleeting-plugin-cloudscale

go 1.24
go 1.27.3
Comment thread
alakae marked this conversation as resolved.
Resolved

require (
github.com/cloudscale-ch/cloudscale-go-sdk/v6 v6.0.0
Expand Down
2 changes: 1 addition & 1 deletion tool.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cloudscale-ch/fleeting-plugin-cloudscale

go 1.24
go 1.27.3

tool (
github.com/goreleaser/goreleaser/v2
Expand Down
Loading