Skip to content

Commit

Permalink
ci: add a varname to switch all become to false, as GH action does no…
Browse files Browse the repository at this point in the history
…t allow priv escalation anymore
  • Loading branch information
rpelisse committed Feb 4, 2025
1 parent 111349a commit 4efa5e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
molecule_tests:
required: true
type: string
root_permission_varname:
required: false
type: string
sanity_includes:
required: false
type: string
Expand Down Expand Up @@ -213,7 +216,7 @@ jobs:
- name: Run molecule test
run: |
molecule --version
molecule test -s ${{ matrix.molecule_test }}
molecule test -s ${{ matrix.molecule_test }} -- -e ${{ inputs.root_permission_varname }}=false
working-directory: ./ansible_collections/${{ inputs.fqcn }}
env:
ANSIBLE_VERBOSITY: ${{ inputs.debug_verbosity }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/cish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
molecule_tests:
required: true
type: string
root_permission_varname:
required: false
type: string
podman_tests_current:
required: true
type: string
Expand Down Expand Up @@ -219,7 +222,7 @@ jobs:
- name: Run molecule test
run: |
molecule --version
molecule test -s ${{ matrix.molecule_test }}
molecule test -s ${{ matrix.molecule_test }} -- -e ${{ inputs.root_permission_varname }}=false
working-directory: ./ansible_collections/${{ inputs.fqcn }}
env:
ANSIBLE_VERBOSITY: ${{ inputs.debug_verbosity }}
Expand Down Expand Up @@ -267,7 +270,7 @@ jobs:
- name: Run molecule test
run: |
molecule --version
molecule test -s ${{ matrix.molecule_test }}
molecule test -s ${{ matrix.molecule_test }} -- -e ${{ inputs.root_permission_varname }}=false
working-directory: ./ansible_collections/${{ inputs.fqcn }}
env:
ANSIBLE_REMOTE_TMP: "/tmp-2.15-${{ matrix.molecule_test }}"
Expand Down Expand Up @@ -316,7 +319,7 @@ jobs:
- name: Run molecule test
run: |
molecule --version
molecule test -s ${{ matrix.molecule_test }}
molecule test -s ${{ matrix.molecule_test }} -- -e ${{ inputs.root_permission_varname }}=false
working-directory: ./ansible_collections/${{ inputs.fqcn }}
env:
ANSIBLE_REMOTE_TMP: "/tmp-2.16-${{ matrix.molecule_test }}"
Expand Down

0 comments on commit 4efa5e2

Please sign in to comment.