Irrespective of from where the money originates, @bougnat2221 , Australia does not impose estate or inheritance taxes on money received but you may subsequently pay taxes on bank interest or investment earnings. See the following ATO page for details.
If you are a beneficiary of a deceased estate | Australian Taxation Office
In terms of not paying taxes on it, perhaps you should speak with a financial advisor? For example, and depending on your age and current superannuation balance, you might wish to make concessional contributions to super.
You are correct, however, to assume that your increased assets after inheritance may affect your Australian pension, but don't assume that giving it away immediately after you've received it will make a difference. You should speak with the Department of Social Services (a.k.a. Centrelink) rather than the ATO to ensure you achieve the best possible outcome. For example, consider the following Services Australia page about "gifting" so you understand whether or not it will make a difference.
Gifting - Age Pension - Services Australia