ci: fix remaining zizmor warnings (#5525)
This commit is contained in:
parent
47ac662a54
commit
4abc4547d0
4 changed files with 20 additions and 8 deletions
|
|
@ -19,9 +19,11 @@ runs:
|
||||||
- name: Determine official plugin version
|
- name: Determine official plugin version
|
||||||
id: plugin-version
|
id: plugin-version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
PLUGIN_VERSION_NUMBER: ${{ inputs.plugin_version_number }}
|
||||||
run: |
|
run: |
|
||||||
# VERY IMPORTANT: chop off the "v".. this tells the oncall plugin that this is an OSS build
|
# VERY IMPORTANT: chop off the "v".. this tells the oncall plugin that this is an OSS build
|
||||||
PLUGIN_VERSION="$(echo ${{ inputs.plugin_version_number }} | sed 's/^v//')"
|
PLUGIN_VERSION="$(echo ${{ env.PLUGIN_VERSION_NUMBER }} | sed 's/^v//')"
|
||||||
echo version="$PLUGIN_VERSION" >> $GITHUB_OUTPUT
|
echo version="$PLUGIN_VERSION" >> $GITHUB_OUTPUT
|
||||||
- name: Determine artifact filename
|
- name: Determine artifact filename
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,15 @@ runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
|
||||||
with:
|
with:
|
||||||
version: 9.1.4
|
version: 9.1.4
|
||||||
- name: Determine grafana-plugin directory location
|
- name: Determine grafana-plugin directory location
|
||||||
id: grafana-plugin-directory
|
id: grafana-plugin-directory
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "grafana-plugin-directory=${{ inputs.oncall-directory }}/grafana-plugin" >> $GITHUB_OUTPUT
|
env:
|
||||||
|
ONCALL_DIRECTORY: ${{ inputs.oncall-directory }}
|
||||||
|
run: echo "grafana-plugin-directory=${{ env.ONCALL_DIRECTORY }}/grafana-plugin" >> $GITHUB_OUTPUT
|
||||||
- name: Determine pnpm-lock.yaml location
|
- name: Determine pnpm-lock.yaml location
|
||||||
id: pnpm-lock-location
|
id: pnpm-lock-location
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,13 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Set engine version in settings file
|
- name: Set engine version in settings file
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ inputs.working_directory }}
|
env:
|
||||||
|
WORKING_DIRECTORY: ${{ inputs.working_directory }}
|
||||||
|
ENGINE_VERSION_NUMBER: ${{ inputs.engine_version_number }}
|
||||||
|
SETTINGS_FILE_PATH: ${{ inputs.settings_file_path }}
|
||||||
|
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
run: |
|
run: |
|
||||||
sed "0,/VERSION.*/ s/VERSION.*/VERSION = \"${{ inputs.engine_version_number }}\"/g" ${{ inputs.settings_file_path }} > ./settings.temp && mv settings.temp ${{ inputs.settings_file_path }}
|
sed "0,/VERSION.*/ s/VERSION.*/VERSION = \"${{ env.ENGINE_VERSION_NUMBER }}\"/g" ${{ env.SETTINGS_FILE_PATH }} > ./settings.temp && mv settings.temp ${{ env.SETTINGS_FILE_PATH }}
|
||||||
cat ${{ inputs.settings_file_path }} | grep VERSION | head -1
|
cat ${{ env.SETTINGS_FILE_PATH }} | grep VERSION | head -1
|
||||||
# yamllint enable rule:line-length
|
# yamllint enable rule:line-length
|
||||||
|
|
|
||||||
8
.github/actions/setup-python/action.yml
vendored
8
.github/actions/setup-python/action.yml
vendored
|
|
@ -15,13 +15,17 @@ runs:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
id: setup-python
|
id: setup-python
|
||||||
uses: actions/setup-python@v5.1.0
|
uses: actions/setup-python@v5.1.0
|
||||||
|
env:
|
||||||
|
PYTHON_REQUIREMENTS_PATHS: ${{ inputs.python-requirements-paths }}
|
||||||
with:
|
with:
|
||||||
python-version: "3.12.10"
|
python-version: "3.12.10"
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
cache-dependency-path: ${{ inputs.python-requirements-paths }}
|
cache-dependency-path: ${{ env.PYTHON_REQUIREMENTS_PATHS }}
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
if: ${{ inputs.install-dependencies == 'true' }}
|
if: ${{ inputs.install-dependencies == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
PYTHON_REQUIREMENTS_PATHS: ${{ inputs.python-requirements-paths }}
|
||||||
run: |
|
run: |
|
||||||
pip install uv setuptools
|
pip install uv setuptools
|
||||||
uv pip sync --system ${{ inputs.python-requirements-paths }}
|
uv pip sync --system ${{ env.PYTHON_REQUIREMENTS_PATHS }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue