mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-16 17:07:02 +01:00
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [OpenVPN/easy-rsa](https://redirect.github.com/OpenVPN/easy-rsa) | patch | `3.2.4` -> `3.2.5` | --- ### Release Notes <details> <summary>OpenVPN/easy-rsa (OpenVPN/easy-rsa)</summary> ### [`v3.2.5`](https://redirect.github.com/OpenVPN/easy-rsa/releases/tag/v3.2.5): 3.2.5 [Compare Source](https://redirect.github.com/OpenVPN/easy-rsa/compare/v3.2.4...v3.2.5) #### What's Changed - Replace `local` / `global` `openssl-easyrsa.cnf` by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1394](https://redirect.github.com/OpenVPN/easy-rsa/pull/1394) - init-pki: Introduce configurable cryptography by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1397](https://redirect.github.com/OpenVPN/easy-rsa/pull/1397) - Drop x509 type kdc built-in by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1399](https://redirect.github.com/OpenVPN/easy-rsa/pull/1399) - Always generate an `openssl-easyrsa.cnf` or `x509-types` tmp-file by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1401](https://redirect.github.com/OpenVPN/easy-rsa/pull/1401) - Libressl use `$EASYRSA_FORCE_SAFE_SSL` by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1402](https://redirect.github.com/OpenVPN/easy-rsa/pull/1402) - Update EasyRSA-Advanced.md by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1403](https://redirect.github.com/OpenVPN/easy-rsa/pull/1403) - `source_vars()`: Add `grep` regex for assign by equal `=` by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1405](https://redirect.github.com/OpenVPN/easy-rsa/pull/1405) - export\_pkcs(), PKCS12 inline: Respect $EASYRSA\_NO\_INLINE by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1407](https://redirect.github.com/OpenVPN/easy-rsa/pull/1407) - Introduce peer-fingerprint inline lists by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1410](https://redirect.github.com/OpenVPN/easy-rsa/pull/1410) - help: Add '-b' alias for --batch and correct default 'vars' file by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1411](https://redirect.github.com/OpenVPN/easy-rsa/pull/1411) - New function ssl\_cert\_sig\_digest(); Extract certificae digest name by [@​TinCanTech](https://redirect.github.com/TinCanTech) in [#​1414](https://redirect.github.com/OpenVPN/easy-rsa/pull/1414) - Upgrading OpenSSL for Windows to 3.6.0 by [@​ecrist](https://redirect.github.com/ecrist) in [#​1416](https://redirect.github.com/OpenVPN/easy-rsa/pull/1416) **Full Changelog**: <https://github.com/OpenVPN/easy-rsa/compare/v3.2.4...v3.2.5> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/angristan/openvpn-install). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNDIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Stanislas Lange <git@slange.me> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
77 lines
2.6 KiB
YAML
77 lines
2.6 KiB
YAML
name: Update Easy-RSA SHA256
|
|
|
|
# Note: This workflow commits and pushes changes to openvpn-install.sh.
|
|
# Uses PAT to trigger CI on the resulting commit. Infinite recursion is prevented
|
|
# by the 'renovate/' branch prefix check - CI commits don't re-trigger this workflow.
|
|
# Requires: Create a PAT with 'contents: write' scope and add as repository secret 'PAT'
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- "openvpn-install.sh"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-hash:
|
|
if: startsWith(github.head_ref, 'renovate/')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
token: ${{ secrets.PAT }}
|
|
persist-credentials: false
|
|
|
|
- name: Extract version and update SHA256
|
|
run: |
|
|
VERSION=$(grep -oP 'EASYRSA_VERSION="\K[^"]+' openvpn-install.sh)
|
|
if [ -z "$VERSION" ]; then
|
|
echo "Error: Failed to extract EASYRSA_VERSION"
|
|
exit 1
|
|
fi
|
|
echo "Easy-RSA version: $VERSION"
|
|
|
|
CURRENT_SHA=$(grep -oP 'EASYRSA_SHA256="\K[^"]+' openvpn-install.sh)
|
|
if [ -z "$CURRENT_SHA" ]; then
|
|
echo "Error: Failed to extract EASYRSA_SHA256"
|
|
exit 1
|
|
fi
|
|
echo "Current SHA256: $CURRENT_SHA"
|
|
|
|
TARBALL_URL="https://github.com/OpenVPN/easy-rsa/releases/download/v${VERSION}/EasyRSA-${VERSION}.tgz"
|
|
if ! curl -fsSL "$TARBALL_URL" -o /tmp/easyrsa.tgz; then
|
|
echo "Error: Failed to download Easy-RSA tarball from $TARBALL_URL"
|
|
exit 1
|
|
fi
|
|
NEW_SHA=$(sha256sum /tmp/easyrsa.tgz | cut -d' ' -f1)
|
|
echo "New SHA256: $NEW_SHA"
|
|
|
|
if [ "$CURRENT_SHA" != "$NEW_SHA" ]; then
|
|
sed -i "s|EASYRSA_SHA256=\"$CURRENT_SHA\"|EASYRSA_SHA256=\"$NEW_SHA\"|" openvpn-install.sh
|
|
echo "SHA256 updated"
|
|
echo "HASH_CHANGED=true" >> "$GITHUB_ENV"
|
|
else
|
|
echo "SHA256 already correct"
|
|
fi
|
|
|
|
- name: Commit changes
|
|
if: env.HASH_CHANGED == 'true'
|
|
env:
|
|
PAT: ${{ secrets.PAT }}
|
|
run: |
|
|
if ! git diff --quiet openvpn-install.sh; then
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git remote set-url origin "https://x-access-token:${PAT}@github.com/${{ github.repository }}"
|
|
git add openvpn-install.sh
|
|
git commit -m "chore: update Easy-RSA SHA256 hash"
|
|
git push
|
|
else
|
|
echo "No changes to commit"
|
|
fi
|