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

ci: use pull_request instead of pull_request_target for Actions #380

Merged
merged 2 commits into from
Feb 23, 2022
Merged

ci: use pull_request instead of pull_request_target for Actions #380

merged 2 commits into from
Feb 23, 2022

Conversation

chewong
Copy link
Contributor

@chewong chewong commented Feb 22, 2022

Reason for Change:

Uses pull_request instead of pull_request_target to prevent malicious commits.

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Please answer the following questions with yes/no:

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

  • yes
  • no

Notes for Reviewers:

echo ${{ secrets.SERVICE_ACCOUNT_SIGNING_KEY }} | base64 -d > sa.key
echo ${{ secrets.SERVICE_ACCOUNT_KEY }} | base64 -d > sa.pub
openssl genrsa -out sa.key 2048
openssl rsa -in sa.key -pubout -out sa.pub
make kind-create
- name: Build azwi
run: make bin/azwi
- uses: azure/login@v1.4.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN won't be available to this action until it's merged to the main branch, which is why azure cli login failed. Let's ignore and I will open a follow-up PR to fix the CI failure.

@chewong chewong marked this pull request as ready for review February 23, 2022 00:30
.github/workflows/azwi-e2e.yaml Outdated Show resolved Hide resolved
.github/workflows/azwi-e2e.yaml Show resolved Hide resolved
Ernest Wong and others added 2 commits February 22, 2022 16:49
Signed-off-by: Ernest Wong <chuwon@microsoft.com>
Co-authored-by: Anish Ramasekar <anish.ramasekar@gmail.com>
Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

lgtm

CI failure will resolve after the follow-up PR: #380 (comment)

@chewong chewong merged commit 1edb03d into Azure:main Feb 23, 2022
@chewong chewong deleted the remove-github-pull-request-target branch February 23, 2022 16:54
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.

None yet

2 participants