diff --git a/.github/workflows/info-needed-closer.yml b/.github/workflows/info-needed-closer.yml index 308b11d0c..90b5285bb 100644 --- a/.github/workflows/info-needed-closer.yml +++ b/.github/workflows/info-needed-closer.yml @@ -4,26 +4,10 @@ on: - cron: 30 5 * * * # 10:30pm PT workflow_dispatch: +permissions: + issues: write + contents: read + jobs: main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: "microsoft/vscode-github-triage-actions" - path: ./actions - ref: stable - - name: Install Actions - run: npm install --production --prefix ./actions - - name: Run Info Needed Closer - uses: ./actions/needs-more-info-closer - with: - app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }} - app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }} - app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }} - label: info-needed - closeDays: 14 - closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/azcodeissuereporting) guidelines.\n\nHappy Coding!" - pingDays: 80 - pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information." + uses: microsoft/vscode-azuretools/.github/workflows/info-needed-closer.yml@main diff --git a/.github/workflows/locker.yml b/.github/workflows/locker.yml index 4211dec73..fcaab4f20 100644 --- a/.github/workflows/locker.yml +++ b/.github/workflows/locker.yml @@ -4,23 +4,9 @@ on: - cron: 0 5 * * * # 10:00pm PT workflow_dispatch: +permissions: + issues: write + jobs: main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: "microsoft/vscode-github-triage-actions" - path: ./actions - ref: stable - - name: Install Actions - run: npm install --production --prefix ./actions - - name: Run Locker - uses: ./actions/locker - with: - app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }} - app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }} - app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }} - daysSinceClose: 45 - daysSinceUpdate: 7 + uses: microsoft/vscode-azuretools/.github/workflows/locker.yml@main