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

  // Creates a new client.
  const client = new SecurityCenterClient();
  // sourceName is the full resource name of the source to be retrieved.
  /*
   * TODO(developer): Uncomment the following lines
   */
  // const sourceName = "organizations/111122222444/sources/1234";
  async function getSource() {
    const [source] = await client.getSource({name: sourceName});
    console.log('Source: %j', source);
  }

  getSource();
  // [END securitycenter_get_source]
}
Demonstrates how to update fields on a security findings
source.