Pass the GitHub GitHub Certification GitHub-Advanced-Security Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

As a repository owner, you do not want to run a GitHub Actions workflow when changes are made to any .txt or markdown files. How would you adjust the event trigger for a pull request that targets the main branch? (Each answer presents part of the solution. Choose three.)

    on:

    pull_request:

    branches: [main]

Options:

A.

- '/*.md'


B.

- '/*.txt'


C.

paths:


D.

paths-ignore:


E.

- 'docs/*.md'


Expert Solution
Questions # 22:

When secret scanning detects a set of credentials on a public repository, what does GitHub do?

Options:

A.

It notifies the service provider who issued the secret.


B.

It displays a public alert in the Security tab of the repository.


C.

It scans the contents of the commits for additional secrets.


D.

It sends a notification to repository members.


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions