Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

Purpose

After testing the Autoreplac e HTML github action there was an error when committing the changes due to missing permissions in the secret token, then in this fix I'm replacing the secret token to use one which has the right permissions.

Declarations

Check these if you believe they are true

Release Notes

After testing the Autoreplac e HTML github action there was an error when committing the changes due to missing permissions in the secret token, then in this fix I'm replacing the secret token to use one which has the right permissions.

Reviewers

@QilongTang @avidit

FYIs

After testing the github action there was an error when committing the changes due to missing permissions in the secret token, then in this fix I'm replacing the secret token to use one which has the right permissions.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9484

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a GitHub Actions workflow by updating authentication and user configuration for the auto-replace HTML action. The changes address permission issues that were preventing the workflow from committing changes.

Key Changes:

  • Replace default GitHub token with a custom token that has appropriate permissions
  • Update Git user configuration from github-actions bot to dynamo-ci-user

id: commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.DYNAMO_ACTIONS_TOKEN }}
Copy link

Copilot AI Sep 23, 2025

Choose a reason for hiding this comment

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

The workflow is switching from the default GITHUB_TOKEN to a custom secret token. Ensure that the DYNAMO_ACTIONS_TOKEN secret is properly configured with minimal necessary permissions and follows the principle of least privilege. Consider documenting what specific permissions this token requires.

Copilot uses AI. Check for mistakes.
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "dynamo-ci-user"
git config user.email "dynamo@autodesk.com"
Copy link

Copilot AI Sep 23, 2025

Choose a reason for hiding this comment

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

[nitpick] The hardcoded email address 'dynamo@autodesk.com' should be verified as a valid and monitored email address. Consider using a no-reply email format or ensuring this email can handle any Git-related notifications.

Suggested change
git config user.email "dynamo@autodesk.com"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

Copilot uses AI. Check for mistakes.
@RobertGlobant20 RobertGlobant20 merged commit 6416e3b into DynamoDS:master Sep 25, 2025
25 of 29 checks passed
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.

2 participants