Unexpected symbol: '2e4ce68d4e3feec97e992821e6391166943f4d49'

Hello ,
I tried to built github .yml file but I’m getting error like

|GitHub Actions/ Main Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 22, Col: 22): Unexpected symbol: '2e4ce68d4e3feec97e992821e6391166943f4d49'. Located at position 9 within expression: secrets.2e4ce68d4e3feec97e992821e6391166943f4d49|

CODE

on:

Trigger analysis when pushing in master or pull requests, and when creating

a pull request.

push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v1.3
env:
GITHUB_TOKEN: {{ secrets.d7c0952be1e24f019c97548bcc56a0f1057181e9 }} SONAR_TOKEN: {{ secrets.2e4ce68d4e3feec97e992821e6391166943f4d49 }}

AND

#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here

#----- Default SonarQube server
sonar.host.url=https://sonarcloud.io/

#----- Default source code encoding
#sonar.sourceEncoding=UTF-8

sonar.organization=sahasudipta
sonar.projectKey=blah blah

— optional properties —

defaults to project key

sonar.projectName=Toolsdemo

defaults to ‘not provided’

sonar.projectVersion=1.0

Path is relative to the sonar-project.properties file. Defaults to .

sonar.sources=https://github.com/sahasudipta/Toolsdemo

Encoding of the source code. Default is default system encoding

sonar.sourceEncoding=UTF-8

Please help . I need to test my code very fast .

Hi @Sudipta_Saha

Are you still facing the issue ? Sounds like GitHub failed to parse those variables in the yaml file.

Mickaël