In this study, we investigate the formation of primordial black holes (PBHs) in a scalar field inflationary model coupled to the Gauss–Bonnet term with fractional power-law potentials. The coupling function enhances the curvature perturbations, then results in the generation of PBHs and detectable secondary gravitational waves (GWs). We identify three separate sets of parameters for the potential functions of the form f1/3, f2/5, and f2/3. By adjusting the model parameters, we decelerate the inflaton during the ultra-slow-roll phase and enhance curvature perturbations. Our calculations predict the formation of PBHs with masses of( ) 10 M, which are compatible with LIGO-Virgo observational data. Additionally, we find PBHs with masses around ( ) 10-6 M and ( ) 10-5 M, which can explain ultra-short-timescale microlensing events in OGLE data. Furthermore, our proposed mechanism could lead to the formation of PBHs in mass scales around ( ) 10-14 M and ( ) 10-13 M, contributing to approximately 99% of the dark matter in the Universe. We also study the production of secondary GWs in our model. In all cases of the model, the density parameter of secondary GWs WGW0 exhibits peaks that intersect the sensitivity curves of GW detectors, providing a means to verify our findings using data of these detectors. Our numerical results demonstrate a power-law behavior for the spectra of WGW0 with respect to frequency, given by W ~ GW0( ) ( ) f f fc n. Additionally, in the infrared regime where f = fc, the power index takes a log-dependent form, specifically n = - 3 2 ln( f f c ).