Question 481 · 540 in bank
DRAG DROP - You have a GitHub repository named repo1 that stores the code of an app named App1. You need deploy a workflow for repo1 by using GitHub Actions. The solution must meet the following requirements: • Scan on pushes to the main branch. • Scan on pull requests to the main branch. • Scan on pull requests to any branch that has a prefix of releases/. • Scan all the files in the subdirectories of the src directory. How should you complete the code? To answer, drag he appropriate values to the correct targets. Each value may be used once, more than once, or not at all.
This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Show the answer figure
Answer: See figure below
Explanation
I know a previous question had a reference to .md files, but this one does not. One of the requirements is: Scan all the files in the subdirectories of the src directory. Emphasis here on SUBDIRECTORIES, so we dont want files from the src directory itself? So would that mean the 3rd field is: src/* This leaves us with the logic: includes says "include all files in src directory and its subdirectories", and then the paths-ignore acts on top of that and removes the files in the src directory, but leaves the subdirectory files in place So: 1. - 'releases/**' 2. - 'src/**' 3. - 'src/*'
Source: Adapted from community discussion — mfawew223

