In order to improve grid security while pursuing a grid operation economy and new energy consumption rates, this paper proposes a short-term optimal scheduling method based on security quantification for the grid containing a pumped-storage power plant. The method first establishes a grid security evaluation model to evaluate grid security from the perspective of grid resilience. Then, a short-term optimal dispatch model of the grid based on security quantification is constructed with the new energy consumption rate and grid loss as the objectives. In addition, an efficient intelligent optimization algorithm, Dung Beetle Optimization, is introduced to solve the scheduling model, dynamically updating the evaluation intervals during the iterative solution process and evaluating the grid security level and selecting the best result after the iterative solution. Finally, the improvement in the term IEEE 30-bus grid connected to a pumped-storage power plant is used as an example to verify the effectiveness of the proposed method and model.