In the heat of combat, a ranged conflict can quickly turn into a melee.
More information about the attachment available on the Wookieepedia article.
BAYONET
Source: 1

Image text
Hard Points Required 1 Encumbrance 1 Price 50 Rarity 1
This attachment can only be used on rifle- and carbine-sized weapons.
Models Include: SoroSuub Mk IX Bayonet, BlasTech B-3 Field Knife.
Base Modifiers: The weapon can be used as a melee weapon with the following profile: (Melee; Damage +1; Critical 3; Range [Engaged]).
Modification Options: 1 Item Quality (Defensive +1) Mod, 1 Item Quality (Pierce +1) Mod.
Footnotes
-
Collapse of the Republic: An Era Sourcebook (Page 60) ↩