-
Notifications
You must be signed in to change notification settings - Fork 708
Make rule deprecated-local-action preserve module parameters #4733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alisonlhart
merged 25 commits into
ansible:main
from
koalajoe23:fix_deprecated_local_action
Aug 21, 2025
Merged
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b9d7b0b
make rule deprecated-local-action preserve module parameters
koalajoe23 89d92a0
Add test cases to fixtures
koalajoe23 0cbbc0a
run rule test in isolation and do not relying on default ruleset side…
koalajoe23 1efee58
refactored the formatter to please SonarCloud (hopefully)
koalajoe23 71de621
Add type hint to please mypy
koalajoe23 a07ebbf
Merge branch 'main' into fix_deprecated_local_action
cidrblock 80b0e93
Downgrade log statements for malformed ansible to asserts
koalajoe23 263035f
Move typing.Any outside typing.TYPE_CHECKING
koalajoe23 6e99842
Make handling of parameterless modules more verbose w/ fixture
koalajoe23 25ea6b5
Fix indentation in docs correct code example
koalajoe23 e2960af
Examples
cidrblock 3443218
Delete GITHUB_ACTION_LOCK_ISSUE.md
cidrblock ab8ab63
rm comment
cidrblock 78ba533
fixes
cidrblock 1d75be7
Update settings.json
cidrblock 30acbc9
Update settings.json
cidrblock d8fa092
bad vulture
cidrblock a62aa99
parametrize
cidrblock 34612e1
empty dict
cidrblock a57e9bd
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7a430b1
rm breakpoint
cidrblock 47b2403
ergh line
cidrblock 06b2464
ergh line
cidrblock 7032c8d
hide empty dicts from transform output again
koalajoe23 baca5b6
Merge branch 'main' into fix_deprecated_local_action
alisonlhart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| --- | ||
| - name: Sample | ||
| ansible.builtin.command: echo 123 | ||
| - name: Sample 1 | ||
| command: echo 123 | ||
| delegate_to: localhost | ||
| - name: Sample 2 | ||
| command: | ||
| cmd: echo 456 | ||
| delegate_to: localhost | ||
| - name: Sample 3 | ||
| ansible.builtin.debug: | ||
| delegate_to: localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| --- | ||
| - name: Sample | ||
| - name: Sample 1 | ||
| local_action: command echo 123 | ||
| - name: Sample 2 | ||
| local_action: | ||
| module: command | ||
| cmd: echo 456 | ||
| - name: Sample 3 | ||
| local_action: ansible.builtin.debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.