mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-09 12:12:21 +01:00
fix(security): harden GitHub Actions workflows against expression injection
Move ${{ }} expressions from run: blocks into step-level env: blocks,
then reference them as properly-quoted shell variables.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
f12c978732
commit
a15e2dcd07
6
.github/workflows/release-please.yml
vendored
6
.github/workflows/release-please.yml
vendored
@ -51,10 +51,12 @@ jobs:
|
||||
# We use a GitHub token with write permissions to create the release,
|
||||
# otherwise we won't be able to trigger a new run when pushing on main.
|
||||
- name: Run release-please
|
||||
env:
|
||||
REPO_URL: ${{ github.repository }}
|
||||
run: |
|
||||
npx release-please release-pr \
|
||||
--token="${{ secrets.REPO_PAT }}" \
|
||||
--repo-url="${{ github.repository }}"
|
||||
--repo-url="${REPO_URL}"
|
||||
npx release-please github-release \
|
||||
--token="${{ secrets.REPO_PAT }}" \
|
||||
--repo-url="${{ github.repository }}"
|
||||
--repo-url="${REPO_URL}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user