Skip to content

PDP-1182 SECCMP-1797: Add top-level permissions to restrict default token#141

Open
GAdityaVarma wants to merge 7 commits intodevelopfrom
fix/SECCMP-1797-harden-permissions
Open

PDP-1182 SECCMP-1797: Add top-level permissions to restrict default token#141
GAdityaVarma wants to merge 7 commits intodevelopfrom
fix/SECCMP-1797-harden-permissions

Conversation

@GAdityaVarma
Copy link
Copy Markdown
Contributor

SECCMP-1797: Add top-level permissions to restrict default token

Adds permissions: contents: read at the workflow level to restrict the default GITHUB_TOKEN scope. Without this, all jobs inherit the full pull_request_target write token.

The copyright-validation job already declares its own permissions block which overrides the default for that specific job.

Ref: Preventing pwn requests

dependabot bot and others added 7 commits July 22, 2025 04:08
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.18.8 to 1.18.9.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](sparklemotion/nokogiri@v1.18.8...v1.18.9)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-version: 1.18.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…ri-1.18.9

Bump nokogiri from 1.18.8 to 1.18.9 in /docs
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.9 to 3.4.2.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](ruby/rexml@v3.3.9...v3.4.2)

---
updated-dependencies:
- dependency-name: rexml
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
MLE-26598 Merge release/1.3.1 into master
Adds explicit top-level permissions: contents: read to limit the
default GITHUB_TOKEN scope for all jobs. Individual jobs that need
write access (copyright-validation) already declare their own
permissions block which overrides the default.

This follows the principle of least privilege recommended in
GitHub's PwnRequest security guidance.
Copilot AI review requested due to automatic review settings April 8, 2026 13:59
Copy link
Copy Markdown

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 tightens the default GITHUB_TOKEN scope for the pull_request_target workflow by adding workflow-level permissions, reducing the risk of unintended write access across jobs.

Changes:

  • Adds top-level permissions: contents: read so jobs default to a read-only token.
  • Keeps the existing job-level permissions override for copyright-validation.

@rjrudin rjrudin changed the base branch from master to develop April 8, 2026 14:04
@GAdityaVarma GAdityaVarma changed the title SECCMP-1797: Add top-level permissions to restrict default token PDP-1182 SECCMP-1797: Add top-level permissions to restrict default token Apr 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

Copyright Validation Results
Total: 6 | Passed: 0 | Failed: 1 | Skipped: 5 | at: 2026-04-08 14:05:16 UTC | commit: 53013fb

❌ Failed Files

  • CONTRIBUTING.md

    Error:

    - No copyright header found

    Expected header:

    Copyright (c) 2023-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
    

⏭️ Skipped (Excluded) Files

  • .copyrightconfig
  • .github/workflows/pr-workflow.yaml
  • docs/Gemfile.lock
  • poetry.lock
  • pyproject.toml

🛠️ Guidance

Follow these steps to fix the failed files:

  1. Insert the expected header at the very top (within first 20 lines) of each failed file.
  2. Ensure the year range matches the configuration (start year through current year).
  3. Do not alter spacing or punctuation in the header line.
  4. Commit and push the changes to update this check.

@SameeraPriyathamTadikonda
Copy link
Copy Markdown
Contributor

@GAdityaVarma let's remove this workflow from this repository.

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.

4 participants