Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(3087): Show that events was executed using Pipeline Access Token #3096

Conversation

y-oksaku
Copy link
Contributor

Context

Currently, someone in pipeline admins is displayed in "Started by" when user executes events with pipeline access token.
Hence the user cannot know whether the event was executed by the user or by the token.

Objective

Display "Started by: Pipeline Access Token" when the event executed with pipeline access token.

ex

References

#3087

License

I confirm that this contribution is made under a BSD license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@@ -79,6 +79,11 @@ module.exports = () => ({

if (creator) {
payload.creator = creator;
} else if (scope.includes('pipeline')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creator setting is in payload, then it gets preference over "Pipeline Access Token".

@coveralls
Copy link

coveralls commented Apr 25, 2024

Coverage Status

coverage: 95.277% (+0.003%) from 95.274%
when pulling e5038ce on sonic-screwdriver-cd:fix-pipeline-token-creator-name
into e06c3d4 on screwdriver-cd:master.

@y-oksaku y-oksaku marked this pull request as ready for review April 25, 2024 02:22
@tkyi tkyi merged commit 8e318c9 into screwdriver-cd:master Apr 25, 2024
2 checks passed
@y-oksaku y-oksaku deleted the fix-pipeline-token-creator-name branch April 26, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants