Skip to content
Open
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
10 changes: 6 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ on:
branches:
- main

permissions: {}

jobs:
check-version:
runs-on: ubuntu-latest
permissions:
pull-requests: write
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: true # Needed to push release tags.
- name: install uv & python
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"
python-version: "3.11"
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI Workflow

on: [pull_request, workflow_dispatch]

permissions: {}

jobs:
main:
name: CI
Expand All @@ -12,9 +14,11 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: install uv and python
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"
python-version: ${{ matrix.python-version }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/dependency-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions: {}

jobs:
dependency_updater:
name: Dependency-Updater
runs-on: ubuntu-latest
permissions:
pull-requests: write
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: true # Needed to push dependency-update branches.
- name: install uv and python
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"
python-version: "3.11"
- name: UV Python dependency updater
env:
GH_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GH_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # Used for PR operations.
run: |
git config --global user.name "SDK Updater Bot"
git config --global user.email "noreply@stackit.de"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:
# run every full hour (to still label PRs from forks)
- cron: '0 * * * *'

permissions: {}

jobs:
labeler:
permissions:
contents: read
pull-requests: write
issues: write
# don't run on PRs from forks (token has no write permissions)
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
name: "Labeler"
Expand All @@ -23,7 +24,7 @@ jobs:
run: |
curl -sSL -o remote-labeler.yml https://raw.githubusercontent.com/stackitcloud/stackit-sdk-go/main/.github/labeler.yml
- name: Labeler action
uses: actions/labeler@v6
uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
with:
configuration-path: "remote-labeler.yml"
sync-labels: false
8 changes: 4 additions & 4 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ env:
DAYS_BEFORE_PR_CLOSE: 14
EXEMPT_PR_LABELS: "ignore-stale"

permissions:
issues: write
pull-requests: write
permissions: {}

jobs:
stale:
name: "Stale"
runs-on: ubuntu-latest
permissions:
pull-requests: write
timeout-minutes: 10
steps:
- name: "Mark old PRs as stale"
uses: actions/stale@v9
uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it."
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GitHub Actions Security Analysis

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions: {}

jobs:
zizmor:
name: zizmor
runs-on: ubuntu-latest
permissions:
security-events: write # Required to upload SARIF to code scanning.
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
version: v1.32.0
Loading