Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ on:
- "dependabot/**"
pull_request:

permissions:
contents: read
permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read # Clone the repository
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: npm
- name: Install dependencies
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ on:
schedule:
- cron: "3 2 1 * *"

permissions:
discussions: write
permissions: {}

jobs:
contributor_report:
name: contributor reports
runs-on: ubuntu-latest
permissions:
discussions: write # Create the monthly thank-you discussion via abirismyname/create-discussion

steps:
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit

- name: Get dates for last month
shell: bash
run: |
Expand All @@ -27,7 +32,7 @@ jobs:
echo "END_DATE=$end_date" >> "$GITHUB_ENV"

- name: Run contributor action
uses: github-community-projects/contributors@v2
uses: github-community-projects/contributors@4fda46a62ca1f1f1162c053c11d9576ae0cdda99 # v2.0.15
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
START_DATE: ${{ env.START_DATE }}
Expand All @@ -37,7 +42,7 @@ jobs:
LINK_TO_PROFILE: "true"

- name: Create GitHub Discussion
uses: abirismyname/create-discussion@v2.1.0
uses: abirismyname/create-discussion@c2b7c825241769dda523865ae444a879f6bbd0e0 # v2.1.0
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down