Only if they last long enough and are done automatically
When Passive checks are used, they are used for two completely different reasons, as explained in the PHB (emphases mine):
A passive check is a special kind of ability check that doesn't involve any die rolls. Such a check can represent the average result for a task done repeatedly, such as searching for secret doors over and over again, or can be used when the DM wants to secretly determine whether the characters succeed at something without rolling dice, such as noticing a hidden monster.
Besides the admonition that such checks don't involve die rolls and the two spells you mention create die rolls, in neither of these use-cases would the benefit of guidance or bardic inspiration apply, because they are both single-use effects whose values are known to the players.
Suppose the DM has decided to use a Passive Perception Check because a character is searching repeatedly for secret doors. Searching repeatedly is clearly an action that is repeated over multiple turns. Yet both guidance and bardic inspiration can affect only a single action on a single turn:
Guidance, duration 1 minute, emphases mine:
Once before the spell ends, the target can roll a d4 and add the number rolled to one ability check of its choice.
Bardic inspiration, emphases mine:
Once within the next 10 minutes, the creature can roll the die and add the number rolled to one ability check, attack roll, or saving throw it makes.
Some quick actions might be repeated over the course of 10 minutes in the case of bardic inspiration, but in either case the bonus would be applied to only a single roll, rather than each one of a series of repeated rolls, which is what a Passive Check represents in this case. Being slightly better during a specific six seconds of a prolonged search would not make you significantly more likely to have a better outcome during the entire search.
Another time a DM might use a Passive Check is when they don't want the players to see the result of rolls, such as when searching for Hidden monsters. In this case, the DM is using the Passive Check specifically to combat the player meta-gaming that results from them knowing the 'result' of a roll. Suppose the party is confronted with a chamber and three passages leading out. They listen down each of the passages and the DM calls for active Perception checks. The players see the results of the rolls: 10, 14, 22 and the DM tells them they don't hear anything down any of the passages. They determine that they still don't know anything about two of the passages, but they can be pretty sure that there is nothing down the third because they 'rolled a 22' and 'nothing has that good a Stealth at our level'. In order to combat this meta-gaming (the characters shouldn't know how well they listened), when the players announce that they listen down each passage, the DM says that they are using Passive Perception, and heard nothing down all three. If the players then respond with three uses of guidance, and see the rolls of 1, 1, and 4, and would like to apply them to their Passive score, they again know that they 'listened harder' down one of the passages, which has defeated the purpose of the Passive Check.
Thus in neither of the cases for which Passive Checks are intended should guidance or bardic inspiration apply, because they are antithetical to the intent of using Passive Checks.
That is not to say that Passive Checks cannot be modified, just that such a modification would need to be of a long-term nature, and automatically applied to every roll. This is the case, for example, with the foresight spell (duration 8 hours), where:
For the duration, the target can't be surprised and has advantage on attack rolls, ability checks, and saving throws.
In this case, eight hours is plenty of time to take repeated actions, and the automatic advantage on every single ability check regardless of whether the character chooses to apply it in any single check means that such a spell should indeed affect a Passive Check. And the rules for Passive Checks state that:
If the character has advantage on the check, add 5.
Thus the effect of being under a foresight spell is a +5 to your Passive score.