Skip to content

Commit 167ec87

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/primer/react-37.8.0
2 parents 07c16fd + 437ee04 commit 167ec87

10 files changed

Lines changed: 226 additions & 198 deletions

File tree

.github/release-drafter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ template: |
55
# Changelog
66
$CHANGES
77
8-
See details of [all code changes](https://github.com/github-community-projects/private-mirrors/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release
8+
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release
99
1010
categories:
1111
- title: '🚀 Features'
@@ -32,14 +32,18 @@ version-resolver:
3232
major:
3333
labels:
3434
- 'breaking'
35+
- 'major'
3536
minor:
3637
labels:
3738
- 'enhancement'
38-
- 'fix'
39+
- 'feature'
40+
- 'minor'
3941
patch:
4042
labels:
43+
- 'fix'
4144
- 'documentation'
4245
- 'maintenance'
46+
- 'patch'
4347
default: patch
4448
autolabeler:
4549
- label: 'automation'

.github/workflows/auto-labeler.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ permissions:
1212
jobs:
1313
main:
1414
permissions:
15-
contents: write
15+
contents: read
1616
pull-requests: write
17-
name: Auto label pull requests
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # pin@v6
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
with:
24-
config-name: release-drafter.yml
17+
uses: github/ospo-reusable-workflows/.github/workflows/auto-labeler.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
18+
with:
19+
config-name: release-drafter.yml
20+
secrets:
21+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-title.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request_target:
77
types:
88
- opened
9+
- reopened
910
- edited
1011
- synchronize
1112

@@ -15,27 +16,9 @@ permissions:
1516
jobs:
1617
main:
1718
permissions:
19+
contents: read
1820
pull-requests: read
1921
statuses: write
20-
name: Validate PR title
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: amannn/action-semantic-pull-request@40166f00814508ec3201fc8595b393d451c8cd80 # pin@v5
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
with:
27-
# Configure which types are allowed (newline-delimited).
28-
# From: https://github.com/commitizen/conventional-commit-types/blob/master/index.json
29-
# listing all below
30-
types: |
31-
build
32-
chore
33-
ci
34-
docs
35-
feat
36-
fix
37-
perf
38-
refactor
39-
revert
40-
style
41-
test
22+
uses: github/ospo-reusable-workflows/.github/workflows/pr-title.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
23+
secrets:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,31 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
create_release:
17-
# release if
18-
# manual deployment OR
19-
# merged to main and labelled with release labels
20-
if: |
21-
(github.event_name == 'workflow_dispatch') ||
22-
(github.event.pull_request.merged == true &&
23-
(contains(github.event.pull_request.labels.*.name, 'breaking') ||
24-
contains(github.event.pull_request.labels.*.name, 'feature') ||
25-
contains(github.event.pull_request.labels.*.name, 'vuln') ||
26-
contains(github.event.pull_request.labels.*.name, 'release')))
27-
runs-on: ubuntu-latest
16+
release:
2817
permissions:
2918
contents: write
3019
pull-requests: read
31-
steps:
32-
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # pin@v6
33-
id: release-drafter
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
with:
37-
config-name: release-drafter.yml
38-
publish: true
20+
uses: github/ospo-reusable-workflows/.github/workflows/release.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
21+
with:
22+
publish: true
23+
release-config-name: release-drafter.yml
24+
secrets:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
release_image:
27+
needs: release
28+
permissions:
29+
contents: read
30+
packages: write
31+
id-token: write
32+
attestations: write
33+
uses: github/ospo-reusable-workflows/.github/workflows/release-image.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
34+
with:
35+
image-name: ${{ github.repository }}
36+
full-tag: ${{ needs.release.outputs.full-tag }}
37+
short-tag: ${{ needs.release.outputs.short-tag }}
38+
create-attestation: true
39+
secrets:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
image-registry: ghcr.io
42+
image-registry-username: ${{ github.actor }}
43+
image-registry-password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
results_format: sarif
3737
publish_results: true
3838
- name: 'Upload artifact'
39-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
39+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
4040
with:
4141
name: SARIF file
4242
path: results.sarif
4343
retention-days: 5
4444
- name: 'Upload to code-scanning'
45-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
45+
uses: github/codeql-action/upload-sarif@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
4646
with:
4747
sarif_file: results.sarif

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ ENV NEXT_TELEMETRY_DISABLED 1
1515
RUN npm run build
1616

1717
FROM node:22-alpine@sha256:c06bea602e410a3321622c7782eb35b0afb7899d9e28300937ebf2e521902555 AS runner
18+
LABEL maintainer="@github" \
19+
org.opencontainers.image.url="https://github.com/github-community-projects/private-mirrors" \
20+
org.opencontainers.image.source="https://github.com/github-community-projects/private-mirrors" \
21+
org.opencontainers.image.documentation="https://github.com/github-community-projects/private-mirrors" \
22+
org.opencontainers.image.vendor="GitHub Community Projects" \
23+
org.opencontainers.image.description="A GitHub App that allows you to contribute upstream using private mirrors of public projects."
24+
1825
RUN apk add --no-cache git
1926
WORKDIR /app
2027

0 commit comments

Comments
 (0)