Reviewing open end credit to determine whether you want to continue the line, increase it, or make any other changes is permissible - see below. Just getting scores because you are curious, as in your second example - I doubt that you can find a permissible purpose for that one.
Sec. 604. Permissible purposes of consumer reports
(a) In general. Subject to subsection (c), any consumer reporting agency may furnish a consumer report under the following circumstances and no other:
(3) To a person which it has reason to believe
(A) intends to use the information in connection with a credit transaction involving the consumer on whom the information is to be furnished and involving the extension of credit to, or review or collection of an account of, the consumer; or