Pin action versions

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2025-05-01 15:52:54 +02:00
parent 0d2df36f82
commit 32a8b09142
No known key found for this signature in database
4 changed files with 32 additions and 44 deletions

View file

@ -1,13 +1,12 @@
--- ---
name: 'CodeQL'
name: "CodeQL"
on: on:
push: push:
branches: [ "master" ] branches: ['master']
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ "master" ] branches: ['master']
schedule: schedule:
- cron: '38 21 * * 3' - cron: '38 21 * * 3'
@ -28,25 +27,23 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4.2.2
- name: Install Go - name: Install Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5.4.0
with: with:
go-version-file: go.mod go-version-file: go.mod
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2.21.2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v2 uses: github/codeql-action/autobuild@v2.21.2
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2.21.2
with: with:
category: "/language:${{matrix.language}}" category: '/language:${{matrix.language}}'
...

View file

@ -1,5 +1,4 @@
--- ---
name: docker-publish name: docker-publish
on: on:
push: push:
@ -19,18 +18,18 @@ jobs:
steps: steps:
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3.6.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3.10.0
- uses: actions/checkout@v4 - uses: actions/checkout@v4.2.2
with: with:
lfs: true lfs: true
show-progress: false show-progress: false
- name: Log into registry - name: Log into registry
uses: docker/login-action@v3 uses: docker/login-action@v3.4.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
@ -41,11 +40,9 @@ jobs:
run: bash ci/docker-gen-tagnames.sh run: bash ci/docker-gen-tagnames.sh
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6.16.0
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.taggen.outputs.docker_build_tags }} tags: ${{ steps.taggen.outputs.docker_build_tags }}
...

View file

@ -1,9 +1,8 @@
--- ---
name: pull-request-ci name: pull-request-ci
on: on:
pull_request_target: pull_request_target:
paths: ["i18n.yaml"] paths: ['i18n.yaml']
jobs: jobs:
generate-translations: generate-translations:
@ -23,7 +22,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4.2.2
with: with:
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
@ -35,10 +34,8 @@ jobs:
working-directory: ./ci/translate working-directory: ./ci/translate
run: go run . run: go run .
- uses: stefanzweifel/git-auto-commit-action@v5 - uses: stefanzweifel/git-auto-commit-action@v5.2.0
with: with:
commit_author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>' commit_author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
commit_message: 'CI: Update embedded translations' commit_message: 'CI: Update embedded translations'
file_pattern: 'src/langs/langs.js' file_pattern: 'src/langs/langs.js'
...

View file

@ -1,5 +1,4 @@
--- ---
name: test-and-build name: test-and-build
on: on:
push: push:
@ -25,7 +24,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4.2.2
- name: Marking workdir safe - name: Marking workdir safe
run: git config --global --add safe.directory /__w/ots/ots run: git config --global --add safe.directory /__w/ots/ots
@ -55,7 +54,7 @@ jobs:
grep -q "### Language" translate-issue.md || rm -f translate-issue.md grep -q "### Language" translate-issue.md || rm -f translate-issue.md
- name: Update Translations Issue - name: Update Translations Issue
uses: JasonEtco/create-an-issue@v2 uses: JasonEtco/create-an-issue@v2.9.2
if: github.ref == 'refs/heads/master' && hashFiles('translate-issue.md') != '' if: github.ref == 'refs/heads/master' && hashFiles('translate-issue.md') != ''
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -78,12 +77,10 @@ jobs:
run: 'awk "/^#/ && ++c==2{exit}; /^#/f" "History.md" | tail -n +2 >release_changelog.md' run: 'awk "/^#/ && ++c==2{exit}; /^#/f" "History.md" | tail -n +2 >release_changelog.md'
- name: Release - name: Release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1.16.0
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
artifacts: '.build/*' artifacts: '.build/*'
bodyFile: release_changelog.md bodyFile: release_changelog.md
draft: false draft: false
generateReleaseNotes: false generateReleaseNotes: false
...