Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

… (but hopefully we never need to use this)

@stephen-carter-at-sf stephen-carter-at-sf force-pushed the sc/W-17576074 branch 2 times, most recently from 6cf456a to 405c7ae Compare January 10, 2025 15:55
node-version: 'lts/*'

- name: Fail if one of the permitted users
if: ${{ github.actor != 'stephen-carter-at-sf' && github.actor != 'jfeingold35' && github.actor != 'jag-j' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we instead check if the actor is part of the https://github.com/orgs/forcedotcom/teams/code-analyzer-core-admin group? Or checking if the actor is a repo admin? Anyway to remove the hardcoded user list here would be better.

Copy link
Contributor Author

@stephen-carter-at-sf stephen-carter-at-sf Jan 10, 2025

Choose a reason for hiding this comment

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

I believe the "Run workflow" button doesn't even appear for folks that aren't repo admins... this was just a further sanity check just in case someone was able to hack in somehow. And I like our names here so that if someone really meant to run this... they would have to contact one of us first.

See some of the github threads about this: https://github.com/orgs/community/discussions/26622

Copy link
Contributor

Choose a reason for hiding this comment

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

Then I will favor removing this. But if you think, it should stay, I will leave it up to you.
My concern is that someone other than us three needing to run this sometime in future and needing to change the code to run this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK removed.

… latest tag easy to do (but hopefully we never need to do so)
@stephen-carter-at-sf stephen-carter-at-sf merged commit 4972371 into dev Jan 13, 2025
12 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/W-17576074 branch January 13, 2025 14:56
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.

3 participants