jpoehnelt/secrets-sync-action

##[error]HttpError: Not Found

k55k32 opened this issue · 1 comments

  
name: sync-secret

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Secrets Sync Action
      uses: google/secrets-sync-action@v1.1.3
      with:
        github_token:  ${{ secrets.SYNC_TOKEN }}
        repositories: ${{github.repository}}
        secrets: ^DEPLOY_*
        dry_run: true
      env:
        DEPLOY_SERVER_TEST_KEY: ${{ secrets.TEST_DEPLOY_KEY }}

this action throw a error

full output:

Run google/secrets-sync-action@v1.1.3
  with:
    github_token: *** 
    repositories: material-crm-server
    secrets: ^DEPLOY_*
    dry_run: true
  env:
    DEPLOY_SERVER_TEST_KEY: ***
[DRY_RUN='true'] No changes will be written to secrets
Available env keys: ["HOME","RUNNER_USER","USER","AZURE_EXTENSION_DIR","CI","JAVA_HOME_12_X64","JOURNAL_STREAM","LEIN_JAR","DOTNET_SKIP_FIRST_TIME_EXPERIENCE","ImageOS","ImageVersion","CONDA","JAVA_HOME","DEBIAN_FRONTEND","PERFLOG_LOCATION_SETTING","VCPKG_INSTALLATION_ROOT","LEIN_HOME","JAVA_HOME_11_X64","GOROOT_1_11_X64","GOROOT_1_14_X64","BOOST_ROOT_1_72_0","BOOST_ROOT_1_69_0","ANDROID_HOME","GOROOT","RUNNER_TOOL_CACHE","JAVA_HOME_7_X64","SELENIUM_JAR_PATH","CHROME_BIN","CHROMEWEBDRIVER","GECKOWEBDRIVER","RUNNER_PERFLOG","INVOCATION_ID","ANDROID_SDK_ROOT","DEPLOYMENT_BASEPATH","LANG","RUNNER_TRACKING_ID","GOROOT_1_13_X64","POWERSHELL_DISTRIBUTION_CHANNEL","PATH","GOROOT_1_12_X64","SWIFT_PATH","M2_HOME","ANT_HOME","JAVA_HOME_8_X64","GRADLE_HOME","GITHUB_ACTIONS","AGENT_TOOLSDIRECTORY","DEPLOY_SERVER_TEST_KEY","DEPLOY_SERVER_TEST1_HOST","DEPLOY_SERVER_TEST1_USER","INPUT_GITHUB_TOKEN","INPUT_REPOSITORIES","INPUT_SECRETS","INPUT_DRY_RUN","GITHUB_JOB","GITHUB_REF","GITHUB_SHA","GITHUB_REPOSITORY","GITHUB_REPOSITORY_OWNER","GITHUB_RUN_ID","GITHUB_RUN_NUMBER","GITHUB_ACTOR","GITHUB_WORKFLOW","GITHUB_HEAD_REF","GITHUB_BASE_REF","GITHUB_EVENT_NAME","GITHUB_WORKSPACE","GITHUB_ACTION","GITHUB_EVENT_PATH","RUNNER_OS","RUNNER_TEMP","RUNNER_WORKSPACE","ACTIONS_RUNTIME_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_CACHE_URL"]
Available repositories: ["huide-tech/action-test","huide-tech/deploy-secrets-sync","huide-tech/material-crm-react","huide-tech/material-crm-server","huide-tech/production-server"]
{
  "REPOSITORIES": [
    "huide-tech/deploy-secrets-sync"
  ],
  "SECRETS": [
    "^DEPLOY_+"
  ],
  "DRY_RUN": true,
  "FOUND_REPOS": [
    "huide-tech/deploy-secrets-sync"
  ],
  "FOUND_SECRETS": [
    "DEPLOY_SERVER_TEST_KEY"
  ]
}
##[error]HttpError: Not Found
##[error]Not Found

this isuee cause the github-token owner has not authorization to write repository