Skip to content

Removing first-party entries from trusted操作OwnerDataModel #22409

Description

@bradam12

I would like to see the ability to remove the first-party orgs from the trusted操作OwnerDataModel, enabling unpinned warnings on first-party actions. If we're mandating SHA pinning on all external actions but GitHub's actions get overlooked, it leaves a gap in our code scanning.

Current usage:

extensions:
  - addsTo:
      pack: codeql/actions-all
      extensible: trusted操作OwnerDataModel
    data:
      - ["org1"]
      - ["org2"]

Potential (psuedocode, not real working examples):

extensions:
  - addsTo:
      pack: codeql/actions-all
      extensible: trusted操作OwnerDataModel
    data:
      - ["org1"]
      - ["org2"]
      - ["!github"] # this syntax
      - ["!actions"]
      - ["!advanced-security"]

  - removesFrom: # or this syntax?
      pack: codeql/actions-all
      extensible: trusted操作OwnerDataModel
    data:
      - ["github"]
      - ["actions"]
      - ["advanced-security"]

  - addsTo:  # or this?
      pack: codeql/actions-all
      extensible: distrusted操作OwnerOverrideDataModel # new
    data:
      - ["github"]
      - ["actions"]
      - ["advanced-security"]

Metadata

Metadata

Assignees

No one assigned

    标签

    questionFurther information is requested

    Type

    No type

    项目

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions