Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Actions Topic 4 Question 3 Discussion

Actual exam question for GitHub's GitHub-Actions exam
Question #: 3
Topic #: 4
[All GitHub-Actions Questions]

As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?

As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?

Show Suggested Answer Hide Answer
Suggested Answer: C

The core.warning() function from the @actions/core package is used to create a warning message in the workflow logs. This is an annotation type that informs users about issues that don't require failing the build but still need attention.


Contribute your Thoughts:

Vilma
2 months ago
I'm not sure, but I think D) core.warn could also work for implementing an annotation.
upvoted 0 times
...
Amber
2 months ago
Hey, I've got a question - is there a `core.oops()` function for when I really mess up? Asking for a friend, of course.
upvoted 0 times
...
Erinn
2 months ago
I agree with Nan, core.warning seems like the right choice for passing warning messages.
upvoted 0 times
...
Shawna
2 months ago
Definitely C! The question clearly states we need to 'include annotations to pass warning messages', and `core.warning()` is the perfect fit for that.
upvoted 0 times
...
Dana
2 months ago
Hmm, I'm not sure. I was thinking B might be the right answer, but C seems more likely. I guess I'll go with C.
upvoted 0 times
Loreta
2 months ago
I believe C is the right choice.
upvoted 0 times
...
Emeline
2 months ago
I think B is the correct answer.
upvoted 0 times
...
...
Eugene
2 months ago
I think C is the correct answer. The `core.warning()` function is the right way to pass warning messages to workflow runners.
upvoted 0 times
Nickie
1 months ago
C) core.warning('Something went wrong, but it's not bad enough to fail the build.')
upvoted 0 times
...
Malcolm
2 months ago
B) core.notice('Something went wrong, but it's not bad enough to fail the build.')
upvoted 0 times
...
Pamella
2 months ago
A) core.info('Something went wrong, but it's not bad enough to fail the build.')
upvoted 0 times
...
...
Nan
2 months ago
I think the answer is C) core.warning.
upvoted 0 times
...

Save Cancel