diff --git a/.github/workflows/generate_api_doc.yml b/.github/workflows/generate_api_doc.yml index 435558567b..89291b3544 100644 --- a/.github/workflows/generate_api_doc.yml +++ b/.github/workflows/generate_api_doc.yml @@ -22,15 +22,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: 9.6.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' diff --git a/.github/workflows/issue-inactive-checker.yml b/.github/workflows/issue-inactive-checker.yml deleted file mode 100644 index 6e70dffbcf..0000000000 --- a/.github/workflows/issue-inactive-checker.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Issue Inactive Checker - -on: - schedule: - - cron: "0 13 * * 1" # Every Monday at 1PM UTC (9AM EST) - -permissions: - contents: read - -jobs: - issue-close-require: - permissions: - issues: write - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: cannot replicate - uses: actions-cool/issues-helper@v3 - with: - actions: "close-issues" - labels: "Resolution: Cannot Replicate" - inactive-day: 20 diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml deleted file mode 100644 index 1c1e479485..0000000000 --- a/.github/workflows/issue-labeled.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Issue Labeled - -on: - issues: - types: [labeled] - -permissions: - contents: read - -jobs: - issue-labeled: - permissions: - issues: write # for actions-cool/issues-helper to update issues - pull-requests: write # for actions-cool/issues-helper to update PRs - runs-on: ubuntu-latest - steps: - - name: Cannot Replicate - if: "${{ github.event.label.name == 'Resolution: Cannot Replicate'}}" - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - We're unable to replicate your issue, if you are able to create a reproducer by using [PrimeVue Issue Template](https://stackblitz.com/edit/primevue-4-vite-issue-template) or add details please edit this issue. This issue will be closed if no activities in 20 days. - - - name: Needs Upvote - if: contains(github.event.label.name, 'Needs Upvote') - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - Thanks a lot for this issue! PrimeTek's own vision for PrimeVue is demanding, but community feedback is crucial in prioritization. The more upvotes help ensure this fix can be addressed quickly or the related PR can be merged soon. - - - name: Needs More Information - if: contains(github.event.label.name, 'Needs More Information') - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - More information is needed to find a solution. A runnable StackBlitz example and additional details would be helpful. - - - name: Wontfix - if: contains(github.event.label.name, 'Wontfix') - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - Unfortunately, this issue cannot be fixed due to technical limitations. PrimeVue team has decided not to pursue a fix, as addressing it would introduce other complications. Thanks a lot for your understanding! - - - name: Help Wanted - if: contains(github.event.label.name, 'Help Wanted') - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - Due to PrimeTek's demanding roadmap for PrimeVue and the limited bandwidth of the core team, this issue is available for anyone to work on. [**Make sure to reference this issue in your pull request.**](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) :sparkles: Thank you for your contribution! :sparkles: - - - name: Duplicate - if: contains(github.event.label.name, 'Duplicate') - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment, close-issue' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - This issue has been marked as a duplicate and has been closed. Please refer to the original issue for updates. Thank you! - diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a098ff620a..efe422493a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -19,15 +19,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: 9.6.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3e94beeed8..d8cc3bc153 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -17,15 +17,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: 9.6.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index efbae57b3e..0834a183c4 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -18,17 +18,19 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Verify Linked Issue - uses: hattan/verify-linked-issue-action@v1.1.5 + uses: hattan/verify-linked-issue-action@2d8e2e47a462cc7b07ba5e6cab6f9d57bd36672e # v1.1.5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: message: 'Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please [manually link to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#manually-linking-a-pull-request-or-branch-to-an-issue-using-the-issue-sidebar) or mention it in the description using #.' - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: 9.6.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: 18 cache: 'pnpm' @@ -57,26 +59,26 @@ jobs: - name: Add Code Format Fail Comment if: always() && steps.codeFormat.outcome == 'failure' - uses: thollander/actions-comment-pull-request@v1 + uses: thollander/actions-comment-pull-request@8a3fad13c20088e9eb0805666b9fe49509d2fec8 # v1 with: message: | Thanks a lot for your contribution! But, PR does not seem to fit our code format standards. Please run the 'npm run format' command and commit the changes. - name: Add Unit Test Fail Comment if: always() && steps.unitTest.outcome == 'failure' - uses: thollander/actions-comment-pull-request@v2 + uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2 with: message: | Thanks a lot for your contribution! But, Unit tests failed. You can check the unit tests with the command 'npm run test:unit' and commit the changes. - name: Add Label if: ${{ failure() }} - uses: actions-ecosystem/action-add-labels@v1 + uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1 with: labels: 'Resolution: Needs Revision' - name: Remove Label - uses: actions-ecosystem/action-remove-labels@v1 + uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 if: ${{ success() }} with: labels: 'Resolution: Needs Revision'