Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: "Lint PR"

on:
pull_request_target:
# BE CAREFUL - this event runs in the context of the default branch (`main`) workflow definition in the target
# repository (MOT the fork's context), so it has potentially sensitive access.
Comment thread
chadlwilson marked this conversation as resolved.
Outdated
Comment thread
chadlwilson marked this conversation as resolved.
Outdated
# It is critical that this only runs on very limited events and/or access to the repo
# Read https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
types:
- opened
- edited
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/publish-suppressions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: Publish Suppressions

on:
workflow_dispatch:
push:
branches:
- generatedSuppressions
pull_request_target:
# BE CAREFUL - this event runs in the context of the default branch (`main`) workflow definition in the target
# repository (MOT the fork's context), so it has potentially sensitive access.
Comment thread
chadlwilson marked this conversation as resolved.
Outdated
# It is critical that this only runs on very limited events and/or access to the repo
# Read https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
Comment thread
chadlwilson marked this conversation as resolved.
types: [ closed ]
branches: [ generatedSuppressions ]
paths: [ generatedSuppressions.xml ]


permissions: {}
jobs:
update_suppression:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
Comment thread
chadlwilson marked this conversation as resolved.

permissions:
contents: write # to push changes in repo (jamesives/github-pages-deploy-action)

Expand Down
Loading