Skip to content

Commit

Permalink
GH Actions - Update direct usage of GitHub context in workflows + Upd…
Browse files Browse the repository at this point in the history
…ate Code owners (#8995)
  • Loading branch information
achyuthajoy authored Jun 24, 2024
1 parent bbebcd2 commit f8c8196
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# Each line is a file pattern followed by one or more owners.

# Harmony owns any files in the .github directory at the root of the repository and any of its subdirectories.
/.github/ @Automattic/harmony
# Transact architecture - DevOps owns any files in the .github directory at the root of the repository and any of its subdirectories.
/.github/ @Automattic/transact-architecture-devops
4 changes: 2 additions & 2 deletions .github/workflows/post-release-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
NEXT_RELEASE_VERSION: ${{ steps.next-version.outputs.NEXT_RELEASE_VERSION }}
run: |
cd wiki
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
HAS_CHANGES=false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "• Created a release branch `release/${{ env.RELEASE_VERSION }}` \n • Raised a <https://github.com/Automattic/woocommerce-payments/pull/${{ env.RELEASE_PR_ID }}|Pull Request> to `trunk`\n • Built a <https://github.com/Automattic/woocommerce-payments/actions/runs/${{ github.run_id }}|zip file and ran smoke tests> against it"
"text": "• Created a release branch `release/${{ env.RELEASE_VERSION }}` \n • Raised a <https://github.com/Automattic/woocommerce-payments/pull/${{ env.RELEASE_PR_ID }}|Pull Request> to `trunk`\n • Built a <https://github.com/Automattic/woocommerce-payments/actions/runs/$GITHUB_RUN_ID|zip file and ran smoke tests> against it"
}
},
{
Expand Down
5 changes: 5 additions & 0 deletions changelog/gh-actions-fix-script-injection-vulnerabilities
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Update direct usage of GitHub contexts on workflows


0 comments on commit f8c8196

Please sign in to comment.