function main(findingName = 'FULL_FINDING_PATH') {
  // [START securitycenter_update_finding_source_properties]
  // Imports the Google Cloud client library.
  const {SecurityCenterClient} = require('@google-cloud/security-center');

  // Creates a new client.
  const client = new SecurityCenterClient();

  // findingName is the full resource name of the finding to update.
  /*
   * TODO(developer): Uncomment the following lines
   */
  // const findingName =
  // "organizations/111122222444/sources/1234/findings/findingid";

  // Use now as the eventTime for the security finding.
  const eventTime = new Date();
  console.log(findingName);
  async function updateFinding() {
    const [newFinding] = await client.updateFinding({
      updateMask: {paths: ['event_time', 'source_properties.s_value']},
      finding: {
        name: findingName,
        // The time associated with discovering the issue.
        eventTime: {
          seconds: Math.floor(eventTime.getTime() / 1000),
          nanos: (eventTime.getTime() % 1000) * 1e6,
        },
        sourceProperties: {
          s_value: {stringValue: 'new_string_example'},
        },
      },
    });
    console.log('Updated Finding: %j', newFinding);
  }
  updateFinding();
  // [END securitycenter_update_finding_source_properties]
}
Demonstrates how to update a security finding in CSCC.