Thank you for the question.
The values and ethics code applies to federal employees, and that includes indeterminate employees, term employees, and casual employees. All of them are subject to the code. Contractors or consultants hired under contract are subject to the Treasury Board contracting policy, which has a provision on conflict of interest and therefore puts an obligation on those contracting with the government, before signing a contract, to require any consultant or other person that will be working directly for the government to sign a declaration stating that no pecuniary interest in the business or any third party exists that would affect objectivity in carrying out the contract.
They're not subject to the values and ethics code per se, which is for employees, but there are provisions in the contracting policy for their conflicts.